Is this an attack?
#1

Hi, i have Yashas antiaim.inc in my gamemode and it have been working fine but yersterday i find this lines in my server_log.txt (crashdectect plugin):
Код:
[19:19:38] [debug] Run time error 4: "Array index out of bounds"
[19:19:38] [debug]  Accessing element at index 163 past array upper bound 16
[19:19:38] [debug] AMX backtrace:
[19:19:38] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=185, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:38] [debug] Run time error 4: "Array index out of bounds"
[19:19:38] [debug]  Accessing element at index 199 past array upper bound 16
[19:19:38] [debug] AMX backtrace:
[19:19:38] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=221, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:38] [debug] Run time error 4: "Array index out of bounds"
[19:19:38] [debug]  Accessing element at index 52 past array upper bound 16
[19:19:38] [debug] AMX backtrace:
[19:19:38] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=74, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:38] [debug] Run time error 4: "Array index out of bounds"
[19:19:38] [debug]  Accessing element at index 92 past array upper bound 16
[19:19:38] [debug] AMX backtrace:
[19:19:38] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=114, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:38] [debug] Run time error 4: "Array index out of bounds"
[19:19:38] [debug]  Accessing element at index 134 past array upper bound 16
[19:19:38] [debug] AMX backtrace:
[19:19:38] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=156, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:38] [debug] Run time error 4: "Array index out of bounds"
[19:19:38] [debug]  Accessing element at index 55 past array upper bound 16
[19:19:38] [debug] AMX backtrace:
[19:19:38] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=77, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:38] [chat] [x[B]lack[S]abbath]: їQUE PUEDO HACER CON EL DINERO QUE TENGA?
[19:19:38] [debug] Run time error 4: "Array index out of bounds"
[19:19:38] [debug]  Accessing element at index 189 past array upper bound 16
[19:19:38] [debug] AMX backtrace:
[19:19:38] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=211, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:38] [debug] Run time error 4: "Array index out of bounds"
[19:19:38] [debug]  Accessing element at index 26 past array upper bound 16
[19:19:38] [debug] AMX backtrace:
[19:19:38] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=48, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:39] [kill] [LGD]Legado killed Duff.uX Sawn-off Shotgun
[19:19:39] [debug] Run time error 4: "Array index out of bounds"
[19:19:39] [debug]  Accessing element at index 36 past array upper bound 16
[19:19:39] [debug] AMX backtrace:
[19:19:39] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=58, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:39] [debug] Run time error 4: "Array index out of bounds"
[19:19:39] [debug]  Accessing element at index 220 past array upper bound 16
[19:19:39] [debug] AMX backtrace:
[19:19:39] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=242, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:39] [debug] Run time error 4: "Array index out of bounds"
[19:19:39] [debug]  Accessing element at index 66 past array upper bound 16
[19:19:39] [debug] AMX backtrace:
[19:19:39] [debug] #0 003e0df0 in public OnPlayerWeaponShot (playerid=77, weaponid=88, hittype=0, hitid=0, Float:fX=0.00000, Float:fY=0.00000, Float:fZ=0.00000) at C:\Users\Oscar-Lolero\Desktop\aa\pawno\include\antiaim.inc:263
[19:19:39] [debug] Run time error 4: "Array index out of bounds"
[19:19:39] [debug]  Accessing element at index 169 past array upper bound 16
[19:19:39] [debug] AMX backtrace:
My question is, is this an attack? And if it is, how i can patch it? Thanks!

ERROR LINE:
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    static Float:pX,Float:pY,Float:pZ,Float:hX,Float:hY,Float:hZ,Float:cX,Float:cY,Float:cZ;

	#if !defined BUSTAIM_DISABLE_PROFILING
		BustAim_g_ShotsFired[playerid][weaponid-22]++; //error line
	#endif
....
...
Reply
#2

Update your include:
https://github.com/YashasSamaga/BustAim-AntiAimbot
(it includes security checks for spoofing)

It happens because a cheater reported an invalid weaponid.
Reply
#3

PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ){
    if(
weaponid 22 || weaponid 38){
        
//hack, ban
        
return 0;
    }
    return 
1;

Reply
#4

Ok thanks you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)