regexp body_check help - IP address

This is a discussion on regexp body_check help - IP address within the mailing.postfix.users forums, part of the Mail Servers and Related category; Another phish made it past my filters, and so I set about trying to craft something that would trap it. ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-26-2005
Jim Wright
 
Posts: n/a
Default regexp body_check help - IP address

Another phish made it past my filters, and so I set about trying to
craft something that would trap it. In every phish I've looked at,
there was always an IP address hidden in a url, such as this:

href="http://198.31.130.18/.signin.ebay.com/cgi4.ebay.com/ws3/
eBayISAPI.dll/signin/"

That was courtesy the latest phish... So, I came up with a regexp that
would match from the equal sign through the first slash after the IP
address, and put it in my body_checks file as follows:

/=\"http:\/\/(([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0
-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5]))\//
Reject ALERT

In my text editor, several test searches correctly found the above and
several variant IP literals, but when I tried sending myself a test
message containing the hidden url, postfix wasn't catching it. I even
forwarded the raw text to myself, and it wasn't caught:

Begin forwarded message:

> your account may have <BR>been tampered with, please contact our <A
> href="http://198.31.130.18/.signin.ebay.com/cgi4.ebay.com/ws3/
> eBayISAPI.dll/signin/" target=_blank><FONT



I'm sure I'm missing some key bit that is causing this not to trigger,
but I can't for the life of me figure out what that might be...

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0