Mirage Source
Speed Hack Time Check - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: Speed Hack Time Check (/showthread.php?tid=1379)



Speed Hack Time Check - William - 06-11-2007

Introduction
This topic is a little linked to viewtopic.php?f=70&t=2984.
Now remember, that the 0.1 value is very important. Do not change that, unless you know what your doing. In case you get the alertmsg when using the value 0.1, set it at 0.2, if you still get it, set it at 0.3. Although I doubt you will need to set it that high. It mainly depends on the fps lock, the higher value you have there, the higher you will need here. So you might need to test it to get it working.

Server Side
Add this in Type PlayerRec:
Code:
SpeedHackCheck As Double

Now find Sub PlayerMove, at the top of that sub, add:
Code:
If Timer < Player(index).Char(Player(index).CharNum).SpeedHackCheck + 0.1 Then
    Call AlertMsg(index, "You are using a Speedhack. Go to the forum for more information.")
    Exit Sub
End If

And below:
Code:
If Player(index).GettingMap = NO Then
Add:
Code:
Player(index).Char(Player(index).CharNum).SpeedHackCheck = Timer

You could also add
Code:
Player(index).Char(Player(index).CharNum).SpeedHackCheck = 0
to the clearplayer sub and such. But don't save it in the account file xD.

PLEASE TEST IT WITH A SPEED HACK!


Re: Speed Hack Time Check - Robin - 06-11-2007

"You are using a Speedhack. Go to the forum for more information."

xD!


Re: Speed Hack Time Check - William - 06-11-2007

Robin Wrote:"You are using a Speedhack. Go to the forum for more information."

xD!
It was just a example, in my game I added a little more. Like:
frmserver.lstSpeedHack.additem "Index: " & index & "Accountname"....
and also a warning system, where it writes the first time to the account file, and the 2nd time it finds him using it. The IP will be banned.


Re: Speed Hack Time Check - Rian - 06-11-2007

Lol. It's hard to test when the server uses gettickcount and several timers too.


Re: Speed Hack Time Check - William - 06-11-2007

Sonire Wrote:Lol. It's hard to test when the server uses gettickcount and several timers too.
Why is that hard? Doesn't speed hack progress work on targeted exe's? They cant work on every running system xD


Re: Speed Hack Time Check - Dragoons Master - 06-11-2007

Realy... stop trying to make all this things, the all can be hacked, somehow, I don't know how, but they can. The best thing would be changing canmove functions from client to server... That's a final bug fix. Then just check the last time the player moved server side and make it sure he can't move until a second or so, just a time lock, server side.
I haven't tested it william, but I'm sure there is a way to hack Timer function.


Re: Speed Hack Time Check - William - 06-11-2007

Dragoons Master Wrote:Realy... stop trying to make all this things, the all can be hacked, somehow, I don't know how, but they can. The best thing would be changing canmove functions from client to server... That's a final bug fix. Then just check the last time the player moved server side and make it sure he can't move until a second or so, just a time lock, server side.
I haven't tested it william, but I'm sure there is a way to hack Timer function.
How can they hack a Timer function in the server? This isn't added to the client.


Re: Speed Hack Time Check - Coke - 06-11-2007

Its been done to me easily and i forget how, i think its some retard packet that forces the timers active enabled values true false true false forcing them into speed,

the timer control in general.. sucks >.>

and tickcount isnt the greatest, i think daves C++ server is the best thing happening here atm - i want to try and write a java port ^_^


Re: Speed Hack Time Check - Rezeyu - 07-11-2007

I don't see the point in having uber leet security on a Mirage Server.

most will never have more than 25 active players anyways, and even if they had 100, that's still manageable to deal with the "Omfg, that dude speed hacks"

Just ban them.
There's no point if adding a ton of extra checks and crap to stop 6 people from speed hacking a hobby ORPG.

=/


Re: Speed Hack Time Check - William - 07-11-2007

Rezeyu Wrote:I don't see the point in having uber leet security on a Mirage Server.

most will never have more than 25 active players anyways, and even if they had 100, that's still manageable to deal with the "Omfg, that dude speed hacks"

Just ban them.
There's no point if adding a ton of extra checks and crap to stop 6 people from speed hacking a hobby ORPG.

=/
That's true, its not hard to find a speed hacker.


Re: Speed Hack Time Check - Dragoons Master - 07-11-2007

William Wrote:
Dragoons Master Wrote:Realy... stop trying to make all this things, the all can be hacked, somehow, I don't know how, but they can. The best thing would be changing canmove functions from client to server... That's a final bug fix. Then just check the last time the player moved server side and make it sure he can't move until a second or so, just a time lock, server side.
I haven't tested it william, but I'm sure there is a way to hack Timer function.
How can they hack a Timer function in the server? This isn't added to the client.

No no, I mean, there is a way to hack a Timer function client side, so doesn't matter what you do client side, there will be, someday, a way to hack it, so don't worry that much about client side and focus on server side.


Re: Speed Hack Time Check - William - 07-11-2007

Yeah, that's what I did Tongue Im just waiting for someone to actually test it.


Re: Speed Hack Time Check - Dragoons Master - 08-11-2007

OOOOhhh, I didn't saw the "Server side" xD SRY xD LMAO


Re: Speed Hack Time Check - Labmonkey - 27-04-2008

I will test it for you, but using mse2, i cannot seem to find
Code:
If Player(index).GettingMap = NO Then
If you can tell me where this was or what sub it was in or where in the sub it was in, i could help you test this...


Re: Speed Hack Time Check - William - 04-05-2008

Im not really sure this method is a good idea, at some times it seems to be non-functional.


Re: Speed Hack Time Check - moller - 06-05-2008

This might been idea before, but I'm gonna add it anyway.
On the server sided one, make a clock, make one on client sided one aswell.
Because if they start speed hacking, the clock time at the client sided, must be different than the server sided, so that'll be a way to check if they speed hack.
Just an idea.


Re: Speed Hack Time Check - Labmonkey - 06-05-2008

Also the packet lag will cause people to get booted for speed hacking :roll:


No seriously though thats a good idea, but the best idea is to stop sending "I moved here" packets and start sending "I pressed this" packets.


Re: Speed Hack Time Check - Robin - 07-05-2008

Labmonkey Wrote:Also the packet lag will cause people to get booted for speed hacking :roll:


No seriously though thats a good idea, but the best idea is to stop sending "I moved here" packets and start sending "I pressed this" packets.

If you mean switching out the client-side commands for requests, I think a lot of people have done.


Re: Speed Hack Time Check - seraphelic - 07-05-2008

Robin Wrote:
Labmonkey Wrote:Also the packet lag will cause people to get booted for speed hacking :roll:


No seriously though thats a good idea, but the best idea is to stop sending "I moved here" packets and start sending "I pressed this" packets.

If you mean switching out the client-side commands for requests, I think a lot of people have done.
Im unsure what you mean, can you give an example?


Re: Speed Hack Time Check - Rezeyu - 08-05-2008

Move Canplayermove etc, server side.