CVAR Hacker detection - my source
Hi!
People asked me to share the code of my Hack-Detection. Before there was a patch for filescanning I was able to scan for files on our server this took me for weeks to get it to work. Now this doesn't work anymore. I found out I still can 'scan' for CVAR names on the client like Hack CVARs. For example the HLH_<cvar>. I searched on hackforums and downloads to get a lot of commands, which I could add in a text file. I am a n00b if we talk about C++ Coding, but my scanner banned over 12 players on our server. So the piece of the code will look noobish and for some of you 'shit'. But who cares? It works, right? :D I got a lot of questions and need some help for this coding. Like the part I have: if (some code) { message or something hacks++ } if (some code) { message etc. hacks++ } etc. etc. I know this can be shorter with the 'for i =...' and 'next i'. But the code is yours! :lol: Look at the code and do some hudge major changes. It doesn't matter how you think about it, but thats why I share it -- to let you guys use and edit it. My questions are: - How to put it on Client-Connect? - An easy'er way to scan? - Anyone help for the textfile open/scan/close? I think I sure do have a lot of more questions but those will come later. Here is a piece of the code. I used "-1" as standard value, but i dunno if this <still> works. Just try/edit it. Code:
char *target = engine->Cmd_Argv(1); Anyone suggestions? And why not post your piece of the code here and tell us your futures? :P Let me know. it worked for me! And this is always 'good enough' till VACē comes out, right!? :) - Frank Weima |
Re: CVAR Hacker detection - my source
Quote:
|
d00d, i removed a lot of things. and added "-1" in stead of the real code. just in case for noobies:P
And yes it worked. But used 0 for that. I used the part like "if <bla> ==0 (...)" and ">=0". You should understand |
Vac2 is supposedly being released this week.
Mani |
Oh, isn't that wat they say since November? :P
|
Quote:
|
Quote:
www.csnation.net |
Quote:
anxiro, was asked to post his code-example... he did say he's not an expert and this is for others to get ideas to implement and improve... If the examples can result in getting any cheaters stopped then what's wrong about it?? Mani, even with the old VAC, it took a long time until hacks were blocked and in some cases not at all... IF this work (or could be modified to work) and you configure it with a file of hack-cvars, it could be a very fast way to find a lot of stupid cheaters (well smart cheaters aren't that common and don't cause a lot of problem as cheating as good player or beeing a good player is almost the same thing on a public server)... /X |
Quote:
|
Quote:
anxiro: Code:
const char * test1 = engine->GetClientConVarValue(engine->IndexOfEdict(pEntity), "hlh_box" ); Code:
if (test1>="-1") BUT, the idea might work even though the code is wrong... /X |
All times are GMT -4. The time now is 06:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.