Snort mailing list archives
Re: How to detect drive letters accessed?
From: Phil Wood <cpw () lanl gov>
Date: Wed, 16 Jan 2002 17:01:01 -0700
On Wed, Jan 16, 2002 at 06:01:25PM -0500, Sheahan, Paul (PCLN-NW) wrote:
Thanks Phil. What exactly does "|4b3a5c|" signify? If I want to use different drive letters etc, how would this appear in a rule? It would be nice to be able to create these myself but I'm not sure how you came up with this! Any info would be appreciated!
Attached is a c program which seems to do the trick. It works like so: % ./ccsth 'K:\' |4b 3a 5c| % It's ok to have spaces in between the hex for each character. The rule would look something like: alert ... (msg: "oh oh!"; content: "|4b 3a 5c|"; ...)
Thanks, Paul -----Original Message----- From: Phil Wood [mailto:cpw () lanl gov] Sent: Wednesday, January 16, 2002 5:34 PM To: Sheahan, Paul (PCLN-NW) Cc: Snort List (E-mail) Subject: Re: [Snort-users] How to detect drive letters accessed? On Wed, Jan 16, 2002 at 05:19:37PM -0500, Sheahan, Paul (PCLN-NW) wrote:Running Snort 1.8.1 B78 on RH Linux 7.0. Using Snort, I am trying to detect when someone accesses a certain driveonone of my servers. For example if I have a server that has a drive letterK:that no one from the outside world should see or be accessing, I'd like to create a rule in Snort that checks for "K:\" in a packet. The trouble is,Ican't just create a rule that searches for "K:\" because the rule doesn't work. I think the colon screws it up or something. Someone in this forum once mentioned putting some type of code in for the colon and backslash instead such as creating a rule to look for "K|C3A|" or something likethat,but all recommendations from that person failed. Does anyone know how I can create a rule to search for "K:\" (can be any drive letter....it's the colon and backslash that are important)?"|4b3a5c|"Thanks! Paul _______________________________________________ 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://www.geocrawler.com/redir-sf.php3?list=snort-users-- Phil Wood, cpw () lanl gov
-- Phil Wood, cpw () lanl gov
Attachment:
ccsth.c
Description:
Current thread:
- How to detect drive letters accessed? Sheahan, Paul (PCLN-NW) (Jan 16)
- Re: How to detect drive letters accessed? Phil Wood (Jan 16)
- <Possible follow-ups>
- RE: How to detect drive letters accessed? Sheahan, Paul (PCLN-NW) (Jan 16)
- Re: How to detect drive letters accessed? Phil Wood (Jan 16)
- RE: How to detect drive letters accessed? David Hondel (Jan 17)
- Re: How to detect drive letters accessed? John Sage (Jan 17)
- RE: How to detect drive letters accessed? Sheahan, Paul (PCLN-NW) (Jan 17)