Smtpscan On Backtrack 5

Smtpscan On Backtrack 5

SMTPSCAN 
smtpscan on backtrack5
 
INTRODUCTION 
 
  • Smtpscan is a remote SMTP server version detector. It can be used to guess which mail software is used on a remote server, that may hide its SMTP banner.
  • Smtpscan works by testing the remote SMTP server reaction, thanks to tests defined in the tests (/usr/local/share/smtpscan/tests) file.
  • Almost all of those tests consists in weird SMTP request, whose answer is not precisly defined in the corresponding RFCs.
  • Some other times, they check whether the remote SMTP server is simply RFC compliant.
  • After each test, remote server returns a SMTP Error Message. 
  • Fingerprints are made of SMTP Error Messages corresponding to the tests.
  • Due to the fact that server reaction may be modified by its configuration, smtpscan tries to detect the nearest fingerprint if there is no exact match, that is it finds the fingerprint(s) that have the fewer different Error Messages.
  • Currently, 15 tests are used to guess the remote server version. Some other may be added in the future.

OPTIONS

-h--help Print help message
-V Print smtpscan current version and exits
-v Verbose mode
-d Debug mode 


-f=PATH Fingerprint file location
-t=PATH Test file location
-p=PORT Remote port
-i=TIMEOUT Connection timeout (in seconds) 
-c

Connect only once. Some servers don't accept too many consecutive connections from a host. You may use this option to be able to scan some servers. smtpscan then uses the SMTP 'RSET' command to be able to restart negociation. Beware: some SMTP servers don't accept too many RSET either... 
-D

Specify a Domain name instead of a server. smtpscan then retrieve the corresponding mail exchanger and scan it
-n=NUMBER

Scan the Nth mail exchanger instead of the first (ordered by preference)
-a

Scan all the Mail Exchangers of the specified domain (see -D switch), that is scan every IP address returned by a MX DNS request (beware of 'virtual IPs' or load balancing).

 
HOW TO OPEN SMTPSCAN IN BACKTRACK 5 

  • To open SMTPSCAN , just follow the path - 
  • BackTrack > Information Gathering > Network Analysis > SMTP Analysis > smtpscan
  • See the below image for more help - 
smtpscan  path
 
smtpscan  path
 
EXAMPLES 1:


smtpscan smtp.gmail.com
  • Scans remote host smtp.gmail.com to guess its smtp software version.
  • See the below image for the output . 
smtpscan  gmail
 
EXAMPLE 2 :
 
 
smtpscan -D hotmail.com
  • Scans the yahoo.com first Mail Exchanger (may be different servers while trying several times, because of DNS CNAME).
  • See the below image for more details - 
 
EXAMPLE 3: 
 
 
smtpscan -D inbox.com -n 2
  • Scans the inbox.com secondary Mail Exchanger.
  • See the below image for more details - 
 
 
EXAMPLE 4 : smtpscan -D yahoo.com -a  -i 30
  • Scans all the yahoo.com Mail Exchangers found, and sets the timeout at 30 seconds .Also using the verbose (-v) option.
  • See the below image for more details - 
 
 

THIS IS HOW WE CAN USE THIS TOOL 

THIS TUTORIAL IS JUST FOR EDUCATIONAL PURPOSE ONLY/-

Comments

Popular Posts