SourcePlugins Index SourcePlugins
All Plugins for Valve's Source - Hosted by Mattie
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Board Navigation
Home
Forum
Search

Plugins:
All Plugins
Mattie's Plugins

Web Tools:
VDF Creator

Randomness:
Flash game for CS:S
ThinkGeek PC Mods ThinkGeek Computing

Browse Source Plugins
[View all]
access(1) admin(7) anti-camp(3) anti-cheat(2) chat(2) clan(1) database(1) deathmatch(3) dods(2) international(1) leveling(1) lite(3) management(1) map-management(3) metamod(10) metaplugin(3) mod(3) models(1) perspective(1) players(1) popular(9) punishment(1) respawn(3) rpg(1) scheduling(1) scripting(4) sounds(6) source-code(4) special-effects(1) stats(3) user:McFly(1) war(1) weapons(5) web(1) zombie(1)

Who is Online

In total there are 4 users online :: 0 Registered, 0 Hidden and 4 Guests

Registered Users: None

[ View complete list ]


Most users ever online was 97 on Tue Aug 03, 2010 10:06 pm


Search

Advanced Search

Aimbot Detection Plugin (CS:Source)
  Description: Statistical analysis to faciliate the identification of aimbot users
  Tags: anti-cheat

 
Post new topic   Reply to topic    SourcePlugins Index -> Plugins and Addons List
View previous topic :: View next topic  
Author Message
Dabljuh
New User


Joined: 09 Dec 2007
Posts: 9

PostPosted: Sun Dec 09, 2007 2:30 pm    Post subject: Aimbot Detection Plugin (CS:Source) Reply with quote

Heyas. I wrote this plugin about a year ago as a reaction to the great 'autoban' plugin, which had a really effective wallhack blocker. The only thing that was missing was a good aimbot identification algorithm.

So I wrote this. Now recently I have recompiled it in version 0.5a, which works, if only on linux. The plugin is open source too, so anyone technically capable may be able to compile it for windows as well.

What does it do? It is still a beta, and I need your testing prowess. It doesn't detect aimbots, yet. It however generates a truckload of statistics on the hit behaviour from every player, i.e. average distance, average angle etc. This is very useful to detecting a player manually. I hope to get enough feedback to implement some periodic tests that will automatically ban or voteban players.

The idea is that aimbot users do not just have higher angles at all ranges, but that their angles are also regressing in a different way. So what I want you to do is: Install the plugin, and observe what statistics the plugin generates with regular players, as compared to aimbot users. Then come back here and post your findings, so that eventually an algorithm can be enabled that automatically kicks players that satisfy certain conditions.

How to set it up should be fairly simple, just copy the .vdf and .so to the right directory and restart your cs:source server.

Then, it's best to connect as a client and enter ad_menu in the console, and you get a list of players, for which you will receive statistical information then.



adplugin-beta6b.tar.gz
 Description:
Latest version

Download
 Filename:  adplugin-beta6b.tar.gz
 Filesize:  162.13 KB
 Downloaded:  994 Time(s)



Last edited by Dabljuh on Sat Dec 29, 2007 9:44 am; edited 1 time in total
Back to top
View user's profile Send private message



Dabljuh
New User


Joined: 09 Dec 2007
Posts: 9

PostPosted: Fri Dec 21, 2007 10:39 am    Post subject: ADPlugin Beta6 is here! Reply with quote

So. I spent the last 2 weeks just doing this. Now, ADPlugin features some VERY advanced math, which cumulates in the Chi-Square test which computes the probability that the guy in question is a cheater

What I need is beta testers. Do you manage to get high scores without cheating? How long can you keep your scores down while cheating?

Remember fellas: this is statistics, and only works on high numbers. So give it some time (and hits) to work with.

[edit]Apparently, there is some bugs in version 6a, leading to inflated probability. I'm removing that version until I figured the problem out.This will teach me to release a version without testing it at least a couple days.[/edit]



adplugin-beta6.tar.gz
 Description:
ADPlugin Beta 6

Download
 Filename:  adplugin-beta6.tar.gz
 Filesize:  153.47 KB
 Downloaded:  344 Time(s)



Last edited by Dabljuh on Sun Dec 23, 2007 2:23 pm; edited 3 times in total
Back to top
View user's profile Send private message
Dabljuh
New User


Joined: 09 Dec 2007
Posts: 9

PostPosted: Fri Dec 21, 2007 10:54 am    Post subject: to give you an idea: Reply with quote

To give you an idea of what it does: This guy was just on my server (this is the ad_stats output) note that the 99.3% Significance there means, the plugin is 99.3% sure the guy cheats. (And yes, he is.)

Name SteamID NumHits AverageQuality AvgHSQuality Chi2 Significance
PASKA STEAM_0:1:10152273 40 91.0 152.5 24.2 99.3%
0.5 1.4 2.6 5.4 14.7 41.9 88.2 118.3 128.5 149.8
HistoT: (No Transform) ClassT: Log: 771.00
Histograph
0 0 0 0 1 4 8 4 6 16
Classes
0.0 0.0 0.0 0.1 0.3 0.9 2.9 9.3 30.5 99.6
Back to top
View user's profile Send private message
Dabljuh
New User


Joined: 09 Dec 2007
Posts: 9

PostPosted: Fri Dec 28, 2007 4:52 pm    Post subject: Reply with quote

Alright, I tested this one to up to 1000 hits without a false positive.

Also observe the "quality" display, it may work out as a quick way to dispatch aimbotters, where the chi-square test will only take over with a sufficient number of hits.



adplugin-beta6b.tar.gz
 Description:
ADPlugin Beta.0.6b

Download
 Filename:  adplugin-beta6b.tar.gz
 Filesize:  162.13 KB
 Downloaded:  386 Time(s)

Back to top
View user's profile Send private message
Mattie
Administrator
Administrator


Joined: 21 May 2005
Posts: 1875
Location: Fort Lauderdale, FL

PostPosted: Fri Dec 28, 2007 8:14 pm    Post subject: Reply with quote

This plugin sounds really cool. I'll likely add it to one of my servers soon to give it a whirl.

Happy holidays,
-Mattie
Back to top
View user's profile Send private message Visit poster's website
dphiance
Newbie


Joined: 17 Oct 2005
Posts: 61

PostPosted: Sat Dec 29, 2007 7:47 am    Post subject: Reply with quote

Wow, a lot of advanced mathematical vector-age there :/ If GJ has the time he could look over it (he has a degree in Vectors, or something like that).

I've GOT to add this to my server, its just, SO GREAT!

1000 hit and 0 false positives, wow. Keep up the good work.

- Saul.

_________________
Back to top
View user's profile Send private message
Dabljuh
New User


Joined: 09 Dec 2007
Posts: 9

PostPosted: Sat Dec 29, 2007 10:19 am    Post subject: Reply with quote

Don't get me wrong. With a "hit" I meant, a player_hurt event with a firearm. The previous release, b0.6a, had a calculation bug where the percentage would eventually begin to increase with more (a few hundred) hits. This bug was sorted, as well as a much smaller one. (it would possibly have taken hundreds of thousands of hits for that one to take effect)

So far, the problem I am having with the plugin is that it takes a ridiculous number of hits to give even the most blatant cheaters a high score. such cheaters would often empty a server before a sufficient number of hits is gathered, and thus the detection method would become worthless. This is why I'm currently designing more trivial methods of detection, to be able to remove a cheater after a few minutes. The upshot is that the gaussian chi-square fit mechanism may be able to detect even the most subtle of cheaters, with sufficient data.

As an Admin and a known cheater hunter, I've however found the plugin very useful to detect cheaters manually very quickly. Just looking at the figures usually answers the question to me whether some guy just seemed lucky, or if he's cheating.
Back to top
View user's profile Send private message
dphiance
Newbie


Joined: 17 Oct 2005
Posts: 61

PostPosted: Sat Dec 29, 2007 10:49 am    Post subject: Reply with quote

Dabljuh wrote:
Just looking at the figures usually answers the question to me whether some guy just seemed lucky, or if he's cheating.


I hate that. When you really think someone is hacking then you find out its just luck.

The one thing that is bad about CS:S is hacking (and bad hit-box detection Wink).

I will see if I can compile it under Windoze.

- Saul.

P.S - Did you ever see HackCam? That has lockbot and wallhack detection. Its pretty spiffy.

_________________
Back to top
View user's profile Send private message
Dabljuh
New User


Joined: 09 Dec 2007
Posts: 9

PostPosted: Sat Dec 29, 2007 6:58 pm    Post subject: Reply with quote

Yes I saw the hackcam video. Never saw it in action though, even as I believe there is a possibility some of hackcam's code made it into VAC2.

Oh, there's more things wrong with CS. For example the AWP. CS revolves around the principle that it's not the caliber of the weapon, but the shot placement that kills you. The AWP flat out ignores that principle and kills you with a hit to your hand.

What's really depressing me is that CS is now over 8 years old. I played it back then in '99, and CS was ahead of its time. Most of the CS clones misunderstood it as a 'tactical shooter with realistic guns', back then the quakes and unreal tournaments were the FPS of choice. It really is time for something new to replace CS. Whatever that may be, it'll probably have the same problems with hackers.
Back to top
View user's profile Send private message
dphiance
Newbie


Joined: 17 Oct 2005
Posts: 61

PostPosted: Mon Dec 31, 2007 11:51 am    Post subject: Reply with quote

Yeah, CS is way too old now. I might switch to Insurgency or make my own CS-like mod.
_________________
Back to top
View user's profile Send private message
eric0279
New User


Joined: 15 Jan 2006
Posts: 24

PostPosted: Fri Jan 18, 2008 5:14 pm    Post subject: Reply with quote

Hi,


a version for windows ? Embarassed Wink

_________________

AIDEMSN
myfoto
Back to top
View user's profile Send private message Send e-mail
Dabljuh
New User


Joined: 09 Dec 2007
Posts: 9

PostPosted: Mon Jan 21, 2008 11:15 pm    Post subject: Reply with quote

eric0279 wrote:
Hi,


a version for windows ? Embarassed Wink
I wish I could make one. unfortunately I don't have a windows in the first place. Ive kept asking people but no one has contacted me about it again.
Back to top
View user's profile Send private message
Dabljuh
New User


Joined: 09 Dec 2007
Posts: 9

PostPosted: Mon Jan 21, 2008 11:20 pm    Post subject: Reply with quote

Also note that the longer I use my plugin the more stuff I find that doesn't work. For example there appears to be a yet unidentified memory allocation problem that sometimes causes hard crashes on map start. This happens about once every two days for me. Furthermore I've put more thought into the actual detection mechanism and I figure I need to rework it some more. So don't give too much credit to the percentage values just yet.
Back to top
View user's profile Send private message
eric0279
New User


Joined: 15 Jan 2006
Posts: 24

PostPosted: Tue Jan 22, 2008 3:37 am    Post subject: Reply with quote

ok
_________________

AIDEMSN
myfoto
Back to top
View user's profile Send private message Send e-mail
your-name-here
New User


Joined: 20 Jan 2008
Posts: 3

PostPosted: Wed Jan 30, 2008 9:57 pm    Post subject: Reply with quote

Hey Dabljuh, I actually got your source-code to compile under windows! The only problem is the memory allocation problem that you mentioned. The plugin loads, but then crashes whenever someone is shot. I think it's a null-pointer exception.

Check this link out: http://forums.mattie.info/cs/forums/viewtopic.php?t=19641&postdays=0&postorder=asc&start=0

I hope we can get some help over there!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SourcePlugins Index -> Plugins and Addons List All times are GMT - 5 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB.