Anti-speed hack
Anti-speed hack
I would like to post my idea for to prevent speed hacking since that seems to be very easy and common with cheat engine and I know I have done it a lot
. Anyways I was thinking you could use a clock script using javascript where when it firsts starts up it receives the time from the server but then updates by itself, so since the clock is client side any speed hack would speed up the clock, and you could verify the client time with the server time every time an important update is made, like a player buying an item or gaining experience. This way if the time is out of sync you can disconnect the player. A simple but effective solution.
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Anti-speed hack
I have never seen a speed hack for PBBG games. I have heard if them in 3D and 2D games, used to make players move faster. How would you do a "speed hack" in a PBBG (which I am assuming you mean since you mention Javascript)?
Also you would need to take into account that JS, used like that, is not secure. The packets could be intercepted and whatever value the player wants can be sent back to the server.
Also you would need to take into account that JS, used like that, is not secure. The packets could be intercepted and whatever value the player wants can be sent back to the server.
The indelible lord of tl;dr
Re: Anti-speed hack
Speeds hack prevention rule #1- don't trust the client. Don't use the client clock for anything and certainly don't let it tell the server where or how fast the character is. Only allow it to request that the character move in direction (x, y, z) at sped n. Then check to see if the character is allowed to make such a request before executing it and sending back a message "you are moving in direction (x,y,z,) at speed n".
Do this with everything.
Do this with everything.
Re: Anti-speed hack
The closest think to speed hacking i could think of is for kings of chaos. they have this feature that you basically click randomly generated links to gain morale which turns into soldiers. now the speed hack is a FF add-on, titled "Yet Another recruiter" instead of loading the link click refresh click refresh the add-on loads like 20+ links in advance which allows for no stop clicking, i hear some people can get 1000 click a min... i still have yet to see it though.
Laguages:
PHP, MYSQL, (X)HTML, HTML5, JQuery, CSS 3.0,
C, C#, C++, Python, Pascal, Perl, Ruby, Turing
Software:
Adobe MC CS4, Visual Studio 2008, Notepad++,
NetBeans IDE, WAMPSERVER
Browsers:
Internet Explorer, Firefox, Opera, Safari, Chrome
(Always have latest patches for browsers.)
Free time:
...
PHP, MYSQL, (X)HTML, HTML5, JQuery, CSS 3.0,
C, C#, C++, Python, Pascal, Perl, Ruby, Turing
Software:
Adobe MC CS4, Visual Studio 2008, Notepad++,
NetBeans IDE, WAMPSERVER
Browsers:
Internet Explorer, Firefox, Opera, Safari, Chrome
(Always have latest patches for browsers.)
Free time:
...