Snort mailing list archives

Relative to content or byte_jump


From: Praveen D <praveend.hac () gmail com>
Date: Tue, 16 Jun 2015 18:06:05 +0530

Hi,

How does relative in byte_test work?
Is it relative to content pattern match or relative from the pointer where
byte_jump pointing to.

*Data:*
44 50 00 2a 00 00 00 08 00 00 00 00 00 0e 00 04 DP.*............
01 1b *00 0c* *00 00 00 20* 00 00 00 18 02 ........ .....

*Rule: *
content:"DP|00 2a|"; byte_jump: 4,0,relative; byte_test:
2,>,11,2,relative; byte_test:
4,>,8,4,relative;

byte_jump: 4,0,relative; will jump 8 bytes, "00 00 00 08"
Match "00 0c" using byte_test: 2,>,11,2,relative; and "*00 00 00 20*"
using byte_test: 4,>,8,4,relative;

Best Regards,
Praveen Darshanam
------------------------------------------------------------------------------
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: