Whats the standard anticheat process for detecting hacked weapons?

MaryKate

Active member
Joined
Feb 7, 2014
Messages
28
Reaction score
0
Hi, basically just a question out of curiosity.

There are lot of good hackers on here and similar sites but none have been able to make (as far as am aware) a weapon hack that can bypass an RP servers anti-cheat.

so i am just wondering what would be the process of an anti cheat on your standard RP server to detect weapons? how do they tell the difference between hacked weapons and their own weapons and most importantly why are they so hard to bypass? hopefully someone can explain to my noob self :)

((wasnt sure where to post it so sorry if its in the wrong section))
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
All RP servers run on the same damn Godfather script and have raped and edited it so much, I may as well call it niggered in ugbase terms, that they all act the same.

Store an array of weapons with ammo.

Give players a weapon or more from the array upon spawn or upon any achievement and any such shit.

If player spawns weapons, other than the weapons listed in the weapons array in the pawn script, check via a loop and that means, player is hacking weapons and not using server sided weapons aka the weapons from the weapons array.

Get his id.

Jail, ban or kick him, or take away his weapons, etc etc.

That's how it works. Detection is easy, so obviously you can't bypass.

Find another method which server isn't expecting and spawn via that, so server will never realise.

                                                                        OR

Find a loop hole in the server's script and abuse it.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Detection usually includes some sort of checks like: you need level 5, you need 10 played hours, you need a weapon license, you need to be in a faction etc. About guns like minigun, rpg7 etc, you could hack those but once you kill someone you'll get insta banned, because of the death reason.

Hacking weapons relies heavily on the server gamemode and their detection/checks methods.
 
Joined
Apr 23, 2014
Messages
12
Reaction score
0
I doubt if there's a way where you could bypass an anti-weapon hacking system because it's all server-sided A.K.A all the weapons you have are server-sided if a weapon comes through in your weapons and it's not registered in the arrays it's considered as hacking.
 

YoloYolo

Active member
Joined
Feb 4, 2015
Messages
100
Reaction score
0
Here's the basic way:Imagine you have 100 mats and gonna make a pistol,you do /sellgun (ID) (pistol) and the server processes that and gives you the weapon,but when you use weapon hacks it is spawned from the client and not the server,you will get banned if the anti-cheat is good.you can notice something,if you spawn in a gun but don't get banned,if you try to save it in the trunk or any place to save,you can't do that because the server doesn't know that you have that gun.
 

lol7

Active member
Joined
Apr 3, 2013
Messages
120
Reaction score
1
Location
Blumenau, Santa Catarina, Brasil
I am able to bypass anti cheat

Here's the proof (see in the attachments) and how:

Connect and enter into a samp server, and then, to simplify the explanation, just enable almost all sobeit samp patches. After it, re-enter the server using sobeit (or cleo without quitting the game). Unfreeze yourself then you have it done.
 

Spix

Well-known member
Joined
Sep 23, 2013
Messages
353
Reaction score
1
lol7 link said:
I am able to bypass anti cheat

Here's the proof (see in the attachments) and how:

Connect and enter into a samp server, and then, to simplify the explanation, just enable almost all sobeit samp patches. After it, re-enter the server using sobeit (or cleo without quitting the game). Unfreeze yourself then you have it done.


Thats a old trick, does not working on plenty of servers..
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
Check this code..
Code:
public OnPlayerUpdate(playerid)
{
	new keys, updown, leftright;
    GetPlayerKeys(playerid, keys, updown, leftright);
    if((GetPlayerWeapon(playerid) == 44 || GetPlayerWeapon(playerid) == 45) && keys & KEY_FIRE && !IsPlayerInAnyVehicle(playerid))
    {
        return 0;
    }
	return 1;
}

This will detect 2 guns by id, 44 and 45/.
It will disable sync of those weapons. to add more just add this after GetPlayerWeapon(playerid) == 45)
Remove the ) at the end of 45 and add || GetPlayerWeapon(playerid) == weaponid then if you want to add more you can but when you want to end it add ) at the end of the weaponid
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
^^^
Kevin that will only work when the player actually aims with right click and then shoots with that weapon.

Here's a way to bypass that. Spawn weapon 44, keep it in your hand, but do not aim or shoot, activate fake bullets, and the SYNC will not be disabled. You're not shooting because you didn't aim and press left mouse click to activate key state KEY_FIRE and the fake bullets will do the damage as usual.

To summarise, study the server script and understand how it works, then make your own way to bypass it, if possible.
 
Top