Snort mailing list archives
Re: sid in .rules
From: waldo kitty <wkitty42 () windstream net>
Date: Sat, 11 May 2013 11:45:14 -0400
On 5/11/2013 10:47, Balla István wrote:
how can i find which rule sid: *1324* resides in? it s not a preproc rule. should be under /snort/rules/ but cannot find in exploit.rules...
depending on your snort and the rules set used, it is in exploit.rules or indicator-shellcode.rules... i've posted numerous times a nice sid lookup script that walks all of your .rules files and displays the results... here it is one more time... #! /bin/bash # lookuprule bash script to find snort rules by sid grep -i -E "sid:\W*$1;" /path/to/your/snort/*rules*/*.rules just change '/path/to/your/snort/' to point to the directory which holds your rules directories (see below) so that *rules* can search each of those rules directories... to convert this to a winwhatever bat file, add "rem " in front of the first two comment lines and change "$1" to "%1"... the only other item needed is a working grep for the winwhatever environment... by having such a quick and easy to use tool, one doesn't have to remember the proper command line inkantachuns and majikal spells to search their rules for a specific SID... the above will also find 3:1324 from the so_rules in so_rules/ and possibly even point you to 129:1324 if it exists in a preprocessor rules file in preproc_rules/... my rules tree looks like this... /path/to/snort/ /path/to/snort/preproc_rules/ /path/to/snort/rules/ /path/to/snort/so_rules/ HtH -- NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ 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:
- sid in .rules Balla István (May 11)
- Re: sid in .rules Y M (May 11)
- Re: sid in .rules Balla István (May 11)
- Re: sid in .rules JJ Cummings (May 11)
- Re: sid in .rules waldo kitty (May 11)
- Re: sid in .rules waldo kitty (May 11)
- Re: sid in .rules JJ Cummings (May 11)
- Re: sid in .rules Balla István (May 11)
- Re: sid in .rules Bates, Peter (May 11)
- Re: sid in .rules Y M (May 11)