sylvershark Posted September 27, 2006 Share Posted September 27, 2006 (edited) Hey there,I'm trying to make an anti-cheat for Counter-Strike:Source for my clan league.What it needs to do:-People enter their username and password from the league website and program will check if account exists in the MYSQL database.-Then it scans every 2 minutes or more, while playing, for some folders, if they exist it will remove them.-Send logs with time/date to FTP server everytime a scan has been made so I can check if people did run the program while in a match. (estimated match time is 30minutes so if program scans once per 2 minutes thats 15logs/guy) ---So people paste it in a folder (materials) and the script will scan for folders and delete them, example of this folder:C:\Program Files\Steam\SteamApps\sylvershark\counter-strike source\cstrike\materialsProblem 1: People have different folder names (SteamApps\SYLVERSHARK\....)Solution: Let people enter their usernameProblem 2: People will enter fake namesSolution ? heLge- helped me a bit on this project, here is what I made yet, it ain't much but I do my best as beginner:; Splits the string with the maps at the "|"-separator and puts it in an array ; $array[0] contains the number of maps in the array, and the following contains the mapnames $array = StringSplit("de_dust|de_dust2|cs_office|de_prodigy", "|") ; Goes thru each element in the array, starting from 1 to the end For $i = 1 To $array[0] ; Skips path if the path's attributes doesn't contain a D (as in Directory) If NOT StringInStr(FileGetAttrib($array[$i]), "D") Then ContinueLoop ; Checks that the path exists, and if so deletes the directory If FileExists($array[$i]) Then DirRemove($array[$i]) NextHelp would be more than welcome,Thanks in advance !Greetz Edited September 27, 2006 by sylvershark Link to comment Share on other sites More sharing options...
AceLoc Posted September 27, 2006 Share Posted September 27, 2006 why are you tryin to start at this difficulty anyways.. this is just a Hint... learn basics first before you go ask these questions because even if youll get answer you probably wont understand it this is not ment offended.. goodlucky anyways Thnk [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
blademonkey Posted September 28, 2006 Share Posted September 28, 2006 Hey there, I'm trying to make an anti-cheat for Counter-Strike:Source for my clan league. What it needs to do: -People enter their username and password from the league website and program will check if account exists in the MYSQL database. -Then it scans every 2 minutes or more, while playing, for some folders, if they exist it will remove them. -Send logs with time/date to FTP server everytime a scan has been made so I can check if people did run the program while in a match. (estimated match time is 30minutes so if program scans once per 2 minutes thats 15logs/guy) --- So people paste it in a folder (materials) and the script will scan for folders and delete them, example of this folder: C:\Program Files\Steam\SteamApps\sylvershark\counter-strike source\cstrike\materials Problem 1: People have different folder names (SteamApps\SYLVERSHARK\....) Solution: Let people enter their username Problem 2: People will enter fake names Solution ? heLge- helped me a bit on this project, here is what I made yet, it ain't much but I do my best as beginner: ; Splits the string with the maps at the "|"-separator and puts it in an array ; $array[0] contains the number of maps in the array, and the following contains the mapnames $array = StringSplit("de_dust|de_dust2|cs_office|de_prodigy", "|") ; Goes thru each element in the array, starting from 1 to the end For $i = 1 To $array[0] ; Skips path if the path's attributes doesn't contain a D (as in Directory) If NOT StringInStr(FileGetAttrib($array[$i]), "D") Then ContinueLoop ; Checks that the path exists, and if so deletes the directory If FileExists($array[$i]) Then DirRemove($array[$i]) Next Help would be more than welcome, Thanks in advance ! GreetzYou'd do better to search for a process then a file. Looking for files takes alot longer than looking for specific processes. just my $0.02 ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
sylvershark Posted September 28, 2006 Author Share Posted September 28, 2006 why are you tryin to start at this difficulty anyways..this is just a Hint... learn basics first before you go ask these questionsbecause even if youll get answer you probably wont understand itthis is not ment offended.. goodlucky anyways ThnkI would probably understand a big part of the code as it is familiar to PHP.You'd do better to search for a process then a file. Looking for files takes alot longer than looking for specific processes.just my $0.02Counter-Strike:Source offers the ability to customize your game by using other models for weapons,floors,players etc. , What people do to wallhack is customizing their walls and use a glass texture for it. Link to comment Share on other sites More sharing options...
fi3ldy Posted December 29, 2006 Share Posted December 29, 2006 $hldir = RegRead("HKEY_CURRENT_USER\Software\Valve\Steam", "ModInstallPath") ;reads the half-life folder (steam/steamapps/account/half-life) $csdir = StringReplace($hldir, "half-life", "counter-strike source\cstrike") ;replace half-life with counter-strike source, takes you to there currently logged on counter-strike source folder Hope this helps. Link to comment Share on other sites More sharing options...
PartyPooper Posted December 30, 2006 Share Posted December 30, 2006 Probably better to check for known folders/files at game startup and then check for processes while playing. Unfortunately, many hacks are hidden under common process names like pinnacle.exe or svhost.exe so it may be difficult to detect them. I guess you could always compare file sizes of the common processes to see if they are truly the correct files. Link to comment Share on other sites More sharing options...
onedayillpay Posted January 2, 2007 Share Posted January 2, 2007 you would have to search threw every folder on there computer not vary many people have there hacks in there steam directory you should go download a hack and hack it up in a NONE vac scured server you will learn alot. you CAN NOT get banned IF your in non vac server now making a program to search for a hack might not be that hard i would search threw configs or ini files, every hack has one FileReadLine search for some of these keyCvars // settings.CFG Aimtimer=1 aimbot=1 aimkey=1 aimspot=3 aimthru=0 aimtime=10000 avdraw=0 boxesp=0 bunnyhop=1 distance=0 ent=0 faresp=0 flash=1 fov=20 height=1 lambert=0 menukey=45 name=0 panickey=123 playerglow=0 speed=0 speedkey=0 visible=1 weapon=0 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now