The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change-Speed Detectation
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #17
RE: Change-Speed Detectation
done Big Grin
Code:
//Send 5 keys:
SENDPACKET 0bf W29 W01 D<R1000000000> D<R1000000000> D<R1000000000> D<R1000000000> D<R1000000000> D<R1000000000>

//Send a single key:
SENDPACKET 0bf W09 W02 D<R1000000000>

I already tested filtering packet 02 received from the client and it's working fine, the client can receive and use these keys on next 5 (or 1) walk requests

now the problem is create an engine to validate all this thing

after some more tries, now I'm stuck because there's no way to do this by scripts, it must be done on server side

I found this info on packet guide:
Quote:Fastwalk prevention notes: each 0x02 pops the top element from fastwalk key stack. (0xbf sub1 init. fastwalk stack, 0xbf sub2 pushes an element to stack)
If stack is empty key value is 0. (-> never set keys to 0 in 0xbf sub 1/2)
Because client sometimes sends bursts of 0x02's DON'T check for a certain top stack value.

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 empty -> fastwalk alert.
Note that actual key values are irrelevant. (just don't use 0)
Of course without perfect 0x02/0x21/0x22 synch (serverside) it's useless to use fastwalk detection.
Last but not least: fastwalk detection adds 9 bytes per step and player !

there's no way to do this only using scripts because the key must be sent to the client when the server send the packet 021 / 022 too, which is the server response to packet 02 (walk request) telling if the walk request was accepted (021) or denied (022)

on scripts we can only filter packets received by the server, but not packets sent. So we can check the packet 02 data, but there's no way to send the "keys packet" together with packet 021 / 022

so to make it work I think we will need a dev hand to make the server send this new packet together with packet 021 / 022
Code:
[FUNCTION AddFastWalkKey]
SENDPACKET 0bf W09 W02 D<R1000000000>

only sending this single packet wont solve the problem yet, but will allow the packet 02 response to be checked later on the script-side to make the engine works
(This post was last modified: 03-16-2014 04:33 PM by Coruja.)
03-16-2014 03:36 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Change-Speed Detectation - Staff_Stanic - 03-06-2014, 12:29 PM
RE: Change-Speed Detectation - Awaken - 03-07-2014, 01:35 AM
RE: Change-Speed Detectation - Feeh - 03-07-2014, 03:25 AM
RE: Change-Speed Detectation - Coruja - 03-16-2014, 02:25 AM
RE: Change-Speed Detectation - Feeh - 03-16-2014, 04:14 AM
RE: Change-Speed Detectation - Feeh - 03-09-2014, 02:27 AM
RE: Change-Speed Detectation - Awaken - 03-11-2014, 09:15 PM
RE: Change-Speed Detectation - XuN - 03-12-2014, 05:49 PM
RE: Change-Speed Detectation - Awaken - 03-14-2014, 10:34 PM
RE: Change-Speed Detectation - darksun84 - 03-15-2014, 12:44 AM
RE: Change-Speed Detectation - Extreme - 03-15-2014, 01:27 AM
RE: Change-Speed Detectation - Coruja - 03-16-2014, 11:23 AM
RE: Change-Speed Detectation - Feeh - 03-16-2014, 01:27 PM
RE: Change-Speed Detectation - Coruja - 03-16-2014 03:36 PM
RE: Change-Speed Detectation - Feeh - 03-17-2014, 02:09 AM
RE: Change-Speed Detectation - Coruja - 03-17-2014, 02:55 AM
RE: Change-Speed Detectation - XuN - 03-17-2014, 04:30 AM
RE: Change-Speed Detectation - Ben - 03-16-2014, 10:39 PM
RE: Change-Speed Detectation - Ben - 03-17-2014, 07:15 AM
RE: Change-Speed Detectation - Coruja - 03-24-2014, 05:24 AM
RE: Change-Speed Detectation - Ben - 03-24-2014, 05:35 AM
RE: Change-Speed Detectation - xfolder - 09-23-2014, 07:53 AM

Forum Jump:


User(s) browsing this thread: 9 Guest(s)