rapid7/metasploit-framework — pull request #105 by mcantoni (2012-01-14 15:40:57+00:00)
Title: Add some useful functions for spam/phishing attacks and a module for che...

...ck smtp open relay.

+ lib/rex/text.rb:

def self.rand_surname
def self.rand_name
def self.rand_name_male
def self.rand_name_female
def self.rand_mail_address

(using the most 100 common surnames, male/female names in the U.S. (http://names.mongabay.com/))

+ modules/auxiliary/scanner/smtp/smtp_open_relay.rb (SMTP Open Relay Server Detection)

Checks if a SMTP server is an open relay using 17 mail relay tests similar to abuse.net.

msf auxiliary(smtp_open_relay) > run

[*] Authoritative DNS server for nothink.org is 62.149.128.2
[*] Mail server for nothink.org is mx.nothink.org
[*] Random email generated : angela.bryant@zjqff.net
[*] Random hostname generated : qyuqjn.zovyp.gov
[+] Mail server banner : 220 rblsmtpd.local
[*] Relay test 1
[*] MAIL FROM:<>
[*] RCPT TO:
[-] 553 Blocked by PBL http://www.spamhaus.org/query/bl?ip=1.1.1.1
[*] Relay test 2
[*] MAIL FROM:
...
...