November 2012
Intermediate to advanced
318 pages
6h 36m
English
Compromised servers might have rogue SMTP servers installed and abused by spammers. System administrators can use Nmap to help them monitor mail servers in their network.
This recipe shows how to detect rogue SMTP servers by using Nmap.
Open your terminal and enter the following Nmap command:
$ nmap -sV --script smtp-strangeport <target>
If a mail server is found on a non-standard port, it will be reported in the script output section:
PORT STATE SERVICE VERSION 9999/tcp open ssl/smtp Postfix smtpd |_smtp-strangeport: Mail server on unusual port: possible malware
The script smtp-strangeport was submitted by Diman Todorov. It detects SMTP servers running on non-standard ports, which ...
Read now
Unlock full access