Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | RE:[Snort-sigs] PCRE for SS#'s |
|---|---|
| Date: | Tue, 21 Sep 2004 09:23:17 -0600 |
From: "Harper, Patrick" <patrick.harper@phns.com>
Someone on the snort-users list asked how to detect SS numbers in a
snort rule, I put the one I wrote out there and was quickly reminded how
lacking my PCRE kung foo is. With the input of the reformed rules nazi
and a few others I got some input that helped me re-write the PCRE for
it and I wanted to run it past this list and put it out for anyone that
it might help.
/\b[0-9]{3}-[0-9]{2}-[0-9]{4}\b/
Effectively the same but shorter:
/\b\d{3}-\d{2}-\d{4}\b/
Word boundaries are probably the best delimiters in general but you might
be able to create a more precise pattern if you already know the format
and/or protocol where SSN's might show up.
Cheers,
nnposter
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Snort-sigs mailing list
Snort-sigs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/snort-sigs
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Snort-sigs] snort not logging into database, John Nagro |
|---|---|
| Next by Date: | RE: [Snort-sigs] JPEG / GDI+ DLL exploit sig?, Frank Knobbe |
| Previous by Thread: | [Snort-sigs] PCRE for SS#'s, Harper, Patrick |
| Next by Thread: | Re: [Snort-sigs] PCRE for SS#'s, Jim Zajkowski |
| Indexes: | [Date] [Thread] [Top] [All Lists] |