Jump to content
Sign in to follow this  
JammyPear

Client side files

Recommended Posts

Hello,

Could someone tell me if it's possible to get the server to search the client's Arma directory and subfolders for a file?

I don't mean by designating the path to the file, I mean for the server to search the entire directory + subfolders for it.

Thanks o/

Share this post


Link to post
Share on other sites

Wow, really sounds like an use case one would use to do malicious stuff :D

And yes, there are ways to do it, with native ArmA2 commands.

What you can't do is a generic recursive folder search - you must speficy the files you want to access!

I saw some servers with some scripted antihax which searches for predefined files in the arma directory because they're known to be malicious.

Share this post


Link to post
Share on other sites

I do not intend to do any malicious stuff.

I do indeed intend on making an antihack script which will do a generic search in the whole directroy for a certain file which will 100% confirm that this client has cheats.

I already know how to search in the directory for a certain path. (i.e \wuat\scripts )

But that's not what I'm looking for. Thanks for answering my question o/

Share this post


Link to post
Share on other sites
if (isServer) exitWith {};
{
	if (loadFile _x != "") then
	{
		endMission "LOSER";
		for "_i" from 0 to 99 do
		{
			(findDisplay _i) closeDisplay 0;
		};
	};
} forEach ["wuat\screen.sqf"];

Share this post


Link to post
Share on other sites
if (isServer) exitWith {};
{
	if (loadFile _x != "") then
	{
		endMission "LOSER";
		for "_i" from 0 to 99 do
		{
			(findDisplay _i) closeDisplay 0;
		};
	};
} forEach ["wuat\screen.sqf"];

I don't mean by designating the path to the file, [...]
What you can't do is a generic recursive folder search - you must speficy the files you want to access! [...]
there is no commad for 'searching' a file

So, please tell me how your script relates to OP's request.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×