Author Topic: Anti Speed/Teleport Hack  (Read 20164 times)

0 Members and 1 Guest are viewing this topic.

Offline -Snowy-

  • Major(1)
  • Posts: 44
    • Snowy
Anti Speed/Teleport Hack
« on: January 22, 2008, 10:00:57 am »
you are all probably gonna lol @ me for this...but hey, i was bored :D im honestly suprised nobody else has tried something similar, seeing that it was so easy and is never wrong (unlike battleye). at least in my trials it hasnt had any problems...at the set distance its not possible to move at that speed legit (even with m79 boosts downward) but it still has 3 warnings just in case

(honestly, i just wanna try and show up enesce and battleye, especially since battleye sucks)

0-1.1
added easyonlaggers option, which give more of a distance before detection the higher a player's ping is (a 500 ping player gets another 500 pixels, that should be more than enough to rule out getting false detections)
does not kick players when script is recompiled

Script Name:
Anti Speed/Teleport Hack
Script Description:
Detects players if they move more than the specified distance in 1 second, disreguarded if a player dies, respawns, joins game, joins team,etc.
Original Author(s):
~Snowy~
Core Version: (Version of the Dedicated Server you made this script with)
2.6.3
Code: (Just some snippets, not the whole script)

Code: [Select]
if Distance(GetPlayerStat(i,'x'),GetPlayerStat(i,'y'),x[i],y[i]) > DISTANCEPERSECOND then begin

if warnings[i] > 0 then begin
warnings[i] := warnings[i] - 1;
if warnings[i] > 0 then begin
WriteConsole(i,'Possible speed hack detected - ' + inttostr(warnings[i]) + ' warning(s) left',$00FF0000);
end;
end;

if warnings[i] = 0 then begin
Command('/say ' + idtoname(i) + ' kicked for possible speed/teleport hacks');
Command('/kick ' + inttostr(i));
end;

end;

whatever happened to enesce making all the anti cheat built into the server...that rapes down hacks compared to battleye

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Anti Speed/Teleport Hack
« Reply #1 on: January 22, 2008, 10:29:45 am »
How about warps due to lag ?

Offline -Snowy-

  • Major(1)
  • Posts: 44
    • Snowy
Re: Anti Speed/Teleport Hack
« Reply #2 on: January 22, 2008, 10:30:50 am »
i doubt even the gayest laggers can warp the entire width of the screen in 1 second, and like i said, they get warnings jic

Offline Pie

  • Flagrunner
  • ****
  • Posts: 761
Re: Anti Speed/Teleport Hack
« Reply #3 on: January 22, 2008, 10:33:47 am »
How about warps due to lag ?
Would that change how far you move in a second in the server?
I mean if you're spiking That badly then you're going to be pinged anyways, right?
Lol, internets.

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Anti Speed/Teleport Hack
« Reply #4 on: January 22, 2008, 10:49:03 am »
Trust me, I have tried that exact method before. It won't work with laggers, false detections paradise.

Offline -Snowy-

  • Major(1)
  • Posts: 44
    • Snowy
Re: Anti Speed/Teleport Hack
« Reply #5 on: January 22, 2008, 10:57:04 am »
increase distance with ping then? not that you want laggers in your server anyway.

edit:
Quote from: Flariut
were you in my server today/tonight (different time zone thing) and by any chance were u hacking? because i got bored and made a anti tele hack thing and either you were hacking or lagging something shockin. just curious to know if it works :D
yeah, it worked! it kiked me...nice one! but dont publish it please, because all the tele hacks we  will dead...

lol this is 5 minutes after i started my first trial :D maybe i shouldnt have posted it D:

fyi if any of you laggy foreigners wanna test it for me, its in my zombie server right now
snowy.servegame.com:23073
id say you wont get kicked unless u actually hack

Offline badchucky

  • Major(1)
  • Posts: 1
Re: Anti Speed/Teleport Hack
« Reply #6 on: January 22, 2008, 11:27:14 am »
Nice script thanks:)

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Anti Speed/Teleport Hack
« Reply #7 on: January 22, 2008, 11:35:59 am »
increasing the threshold distance based on a player's ping should definitely help as long as you make sure to increase it a good amount

Offline rhide

  • Major
  • *
  • Posts: 60
  • Coffee-addict
    • Vrastar-Hai soldat clan
Re: Anti Speed/Teleport Hack
« Reply #8 on: January 22, 2008, 04:17:07 pm »
I just want to add some general scripting tips:

1. I see that you use a lot of comments to describe your constant variables in the top level of your script - dont do that. Variable names should be good enough to be self-explanatory without any comments. Instead use comments to explain programming logic in words (the more the better!).

2. The code you pasted above could use some minor cleaning:

Code: [Select]
if Distance(GetPlayerStat(i,'x'),GetPlayerStat(i,'y'),x[i],y[i]) > DISTANCEPERSECOND then begin

    if warnings[i] > 0 then begin
        warnings[i] := warnings[i] - 1;
        WriteConsole(i,'Possible speed hack detected - ' + inttostr(warnings[i]) + ' warning(s) left',$00FF0000);
    end else begin
        Command('/say ' + idtoname(i) + ' kicked for possible speed/teleport hacks');
        Command('/kick ' + inttostr(i));
    end;
end;

Now the player will be kicked both if his warning = 0 AND if his warnings < 0. This might not be neccesary, but it's VERY good practise to test for <= and not just =. For example, in the future you might add higher offences that reduce warning level by 2 - wich might just take the player from 1 to -1, and voila - a bug!

3. Use indents! Just hitting TAB once makes the code MUCH easier to read >.<
Warning! Division by zero seriously injures yourself and the people in your surroundings.

Proud member of Vrastar-Hai:
http://www.guldheden.com/~erga050/vrastar-hai

Offline -Snowy-

  • Major(1)
  • Posts: 44
    • Snowy
Re: Anti Speed/Teleport Hack
« Reply #9 on: January 22, 2008, 06:16:59 pm »
yeah honestly im horrid at laying out code in soldat scripts...im not very familiar with the language, so i dont really know how to use else and such (its a bit different to vb and im just not used to the layout)

and im not really sure people need to be told what things to, because if they cant work it out themselves they shouldnt have gone past the config section up the top

Offline rhide

  • Major
  • *
  • Posts: 60
  • Coffee-addict
    • Vrastar-Hai soldat clan
Re: Anti Speed/Teleport Hack
« Reply #10 on: January 23, 2008, 06:01:12 pm »
Don't worry about being unfamiliar with the language, if you're smart enough to work around that then good code design will come with time :)

About comments though: What you say is not really true.
Think of a car, some people just use the "config section" (think of it as just using the car) while others want to unscrew it and start modifying it's parts. Those people may very well be competent enough to do so, but without a proper manual (comments) the car is simply way too complex to do anything.

In fact, many professional programmers I know actually recommend commenting EVERY piece of code you write. Perhaps that's just too much, but when you look at your very own code, lets say a year later, then perhaps
Code: [Select]
Distance(GetPlayerStat(i,'x'),GetPlayerStat(i,'y'),x[i],y[i]) > DISTANCEPERSECONDjust wont be so self-explanatory anymore
Warning! Division by zero seriously injures yourself and the people in your surroundings.

Proud member of Vrastar-Hai:
http://www.guldheden.com/~erga050/vrastar-hai

Offline Mercury92

  • Camper
  • ***
  • Posts: 284
Re: Anti Speed/Teleport Hack
« Reply #11 on: May 11, 2010, 10:06:15 am »
BE is actually dead for a while and many hackers seen on public.
This script works very good.
[saw]  on 1.5.1

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: Anti Speed/Teleport Hack
« Reply #12 on: May 11, 2010, 10:27:22 am »
BE is actually dead for a while and many hackers seen on public.
This script works very good.
Just get admins around all time and it'll be fine. Imo scripts don't solve it.
Btw. necro much.

Offline Mercury92

  • Camper
  • ***
  • Posts: 284
Re: Anti Speed/Teleport Hack
« Reply #13 on: May 11, 2010, 11:17:18 am »
Admin's are not gonna monitor soldat players 24/7.
Just a second ago 2 guys were using speedhack on somekind Zombie server. (Hacktank script)
On each Server 5-10 admins. In theory there will be only admins instead of players.

This is not a solution.
[saw]  on 1.5.1

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Anti Speed/Teleport Hack
« Reply #14 on: May 11, 2010, 01:01:54 pm »
I have the solution, I am gonna make all players admins. Then they can kick and ban each other, problem "solved".

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: Anti Speed/Teleport Hack
« Reply #15 on: May 11, 2010, 01:16:49 pm »
I have the solution, I am gonna make all players admins. Then they can kick and ban each other, problem "solved".
Leo, just give me adminrights. :)
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline Silnikos

  • Soldier
  • **
  • Posts: 129
Re: Anti Speed/Teleport Hack
« Reply #16 on: May 11, 2010, 01:33:11 pm »
This script is gonna go crazy on maps with bouncing polygons.

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: Anti Speed/Teleport Hack
« Reply #17 on: May 11, 2010, 01:53:21 pm »
Admin's are not gonna monitor soldat players 24/7.
I don't meant these guys who are on 24/7. I meant to have admins in USA, Europe, ect. Not only in a timezone range from GMT0-8 for example, get what I mean?

Even though Silnikos is right aswell scripts are also no solutions, admins are way better, but when you pick guys which can't afford a brain to use adminrights in correct form it's not my problem.

And there won't be only admins in theory, they also can just stay around and come in if someone means to see a hacker, if they don't want to they aren't worth beeing an admin..

Offline Mercury92

  • Camper
  • ***
  • Posts: 284
Re: Anti Speed/Teleport Hack
« Reply #18 on: May 11, 2010, 02:41:37 pm »
This script is gonna go crazy on maps with bouncing polygons.
Script is tested and no Lags even "gayest" lagger neither Bouncing polygons count here.
[saw]  on 1.5.1

Offline Silnikos

  • Soldier
  • **
  • Posts: 129
Re: Anti Speed/Teleport Hack
« Reply #19 on: May 12, 2010, 06:35:56 am »
If it can't detect a strong bouncing polygon, it won't detect hack either.

DarkCrusade

  • Guest
Re: Anti Speed/Teleport Hack
« Reply #20 on: May 12, 2010, 08:50:13 am »
What about you stop saying "Uuuuuh, this doesn't work because of BOUNCING POLYGONS" and just try this?

Offline Silnikos

  • Soldier
  • **
  • Posts: 129
Re: Anti Speed/Teleport Hack
« Reply #21 on: June 01, 2010, 09:58:48 am »
What about you stop saying "Uuuuuh, this doesn't work because of BOUNCING POLYGONS" and just try this?
You ask me to get hacks and use them? lol

DarkCrusade

  • Guest
Re: Anti Speed/Teleport Hack
« Reply #22 on: June 01, 2010, 10:04:14 am »
I didn't tell you to join a server and use an aimbot + tele hacks. I stated that this theoretical discussions gets us nowhere and instead of that you could just try it out.

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Anti Speed/Teleport Hack
« Reply #23 on: June 02, 2010, 11:16:52 am »
just ban *.*.*.* range. Problem solved

And nice script. Its weird that you wrote it, since you're writing also hacks for soldat, lol.
Some pangs of conscience or what? :D
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Anti Speed/Teleport Hack
« Reply #24 on: June 02, 2010, 02:33:00 pm »
And nice script. Its weird that you wrote it, since you're writing also hacks for soldat, lol.
Some pangs of conscience or what? :D
To secure something from hacks you need to know how to hack.

DarkCrusade

  • Guest
Re: Anti Speed/Teleport Hack
« Reply #25 on: June 02, 2010, 03:28:14 pm »
Yeah, that's why you sell your hacking tool.

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Anti Speed/Teleport Hack
« Reply #26 on: June 09, 2010, 03:31:27 pm »
And nice script. Its weird that you wrote it, since you're writing also hacks for soldat, lol.
Some pangs of conscience or what? :D
To secure something from hacks you need to know how to hack.

* FalconPL disagree

you only need to know what hax do
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline duz

  • Flagrunner
  • ****
  • Posts: 586
  • Old nick: HunterZ
Re: Anti Speed/Teleport Hack
« Reply #27 on: June 20, 2011, 04:35:55 pm »
There's no one solution using script to prevent speed/teleport hacks?
Some players in Brazil are using █████████[software] and MSAC doesn't detect.
« Last Edit: June 21, 2011, 01:27:34 am by Espadon »
2002-2007 / 2009-2012
HunterZ The Movie I / II / III
Awards

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Anti Speed/Teleport Hack
« Reply #28 on: June 21, 2011, 11:48:11 am »
I took a look at the speed hack software and wrote some detection code.
If you know other software which allows you to speedhack just send me a pm with the details.

Thanks
« Last Edit: June 21, 2011, 06:08:10 pm by Shoozza »
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Anti Speed/Teleport Hack
« Reply #29 on: June 21, 2011, 11:54:29 pm »
I took a look at the speed hack software and wrote some detection code.
If you know other software which allows you to speedhack just send me a pm with the details.

Thanks

It'd be cooler if we made it delete or disable the detected hacks, not just whine about them.
There are other worlds than these

Offline KYnetiK

  • Camper
  • ***
  • Posts: 314
  • Something Else
    • KYnetiK ART
Re: Anti Speed/Teleport Hack
« Reply #30 on: June 22, 2011, 02:20:33 am »
Denying user input - how much more disabling do you need it?
I asked God for a bike, but I know God doesn’t work that way. So I stole a bike and then asked for forgiveness.
_____________
WARNING! This user may use sarcasm and cynicism in a way you are not accustomed to.

[Barret]  /  [saw]
*Shakes Fist*

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Anti Speed/Teleport Hack
« Reply #31 on: June 22, 2011, 03:11:42 am »
Denying user input - how much more disabling do you need it?
Actually the game quits after the messagebox gets closed :P

I took a look at the speed hack software and wrote some detection code.
If you know other software which allows you to speedhack just send me a pm with the details.

Thanks

It'd be cooler if we made it delete or disable the detected hacks, not just whine about them.
Nah I can't just start deleting 3rd party stuff.
« Last Edit: June 22, 2011, 03:14:05 am by Shoozza »
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline KYnetiK

  • Camper
  • ***
  • Posts: 314
  • Something Else
    • KYnetiK ART
Re: Anti Speed/Teleport Hack
« Reply #32 on: June 22, 2011, 03:59:48 am »
Actually the game quits after the messagebox gets closed :P

Exactly - deny the user any form of input to the application while a hack is detectable. What more do y'need :P
I asked God for a bike, but I know God doesn’t work that way. So I stole a bike and then asked for forgiveness.
_____________
WARNING! This user may use sarcasm and cynicism in a way you are not accustomed to.

[Barret]  /  [saw]
*Shakes Fist*