Coruja
Sphere Developer
Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7
Dimension Shard
|
RE: Change-Speed Detectation
(03-16-2014 10:39 PM)Ben Wrote: ok, I just had a look into the source... surprise surprise... This seems to have already been implemented if you activate the DebugFlags = 0x80 in sphere.ini; 0x80 is DEBUGF_WALKCODES.
Now, I'm not sure if the whole thing works like described above, but if some of you would like to test it, I'll be glad to tweak it to work properly. Maybe it could also be moved to an OF_Flag instead of a Debug flag
roflmao
I tested here and it seems to be broken, sphere send first 5 keys on client login, check for the keys on walk packet 02, but doesnt "renew" these keys. So the char can only walk 5 steps after login, then it got stuck and cant walk anymore, spamming this console error:
13:42:ERROR:1: Invalid walk echo (00). Invalid after valid.
I tried to send these keys manually to the client, but even if it receive and use these keys, the char doesnt walk. Maybe there's something internal on sphere checking for a specific value and will only allow the char to move using this value
(03-17-2014 02:09 AM)Feeh Wrote: (03-16-2014 03:36 PM)Coruja Wrote: The only safe way to detect fastwalk: push a key after EACH 0x21, 0x22, (=send 0xbf sub 2) check in 0x02 for stack emptyness.
If you send a key after 0x21/0x22, when you receive the next 0x02 the stack will never be empty, right? Although RUOSI provides the most complete packet guide I started to find it not-so-much reliable or not well described
PS: I don't know if you're still in the test phase of the script or started the real development, but these keys you send to the client must be stored in the server, once it is possible to hijack the packets it is possible to send non-zero keys and bypass the fast walk check
for now I'm just testing, the most important is make it works even with a simple code
1st stage = make it work
2nd stage = improve the code
3rd stage = test on live server lol
(This post was last modified: 03-17-2014 02:56 AM by Coruja.)
|
|
03-17-2014 02:55 AM |
|
The following 2 users Like Coruja's post:2 users Like Coruja's post
Awaken (03-17-2014), Staff_Stanic (03-17-2014)
|