smtp-user-enum User Documentation



Similar documents
SMTP Servers. Determine if an message should be sent to another machine and automatically send it to that machine using SMTP.

OPS535 Advanced Network Administration. SMTP Lab SIMPLE MAIL TRANSFER PROTOCOL

smtplib SMTP protocol client

CS 164 Winter 2009 Term Project Writing an SMTP server and an SMTP client (Receiver-SMTP and Sender-SMTP) Due & Demo Date (Friday, March 13th)

Lab 7: Introduction to Pen Testing (NMAP)

# Constructors $smtp = Net::SMTP->new('mailhost'); $smtp = Net::SMTP->new('mailhost', Timeout => 60);

OCS Training Workshop LAB14. Setup

Simple Mail Transfer Protocol

Workflow Configuration on R12/R11. High Level Steps. SENDMAIL configuration mostly done by System Administrator Workflow configuration for R12

CipherMail Gateway Quick Setup Guide

SendMIME Pro Installation & Users Guide

# Constructors $smtp = Net::SMTP->new('mailhost'); $smtp = Net::SMTP->new('mailhost', Timeout => 60);

Applications and Services. DNS (Domain Name System)

Cannot send Autosupport , error message: Unknown User

Configuring Security for SMTP Traffic

Articles Fighting SPAM in Lotus Domino

Internet Security [1] VU Engin Kirda

Command Line Interface User Guide for Intel Server Management Software

The Application Layer: DNS

Send TLM. Table of contents

Mail Avenger. David Mazières New York University

Emacs SMTP Library. An Emacs package for sending mail via SMTP. Simon Josefsson, Alex Schroeder

debops.postfix documentation

Introduction. -- some basic concepts and terminology -- examples for attacks on protocols -- main network security services

Filtering Mail with Milter. David F. Skoll Roaring Penguin Software Inc.

Linux MPS Firewall Supplement

Chapter 2 Application Layer. Lecture 5 FTP, Mail. Computer Networking: A Top Down Approach

JAVAMAIL API - SMTP SERVERS

Math SMTP Server Configuration

Setup Local Mail Server Using Postfix, Dovecot And Squirrelmail On CentOS 6.5/6.4

FTP: the file transfer protocol

CSI Lab 1 : Exercise Find the IP address of Or, another way:

Device Log Export ENGLISH

Mail system components. Electronic Mail MRA MUA MSA MAA. David Byers

# Constructors $smtp = Net::SMTP->new( mailhost ); $smtp = Net::SMTP->new( mailhost, Timeout => 60);

Simple Scan to Setup Guide

My FreeScan Vulnerabilities Report

Week Date Teaching Attended 3 24/01/10 Lab 2: Windows Services/Toolkit

QMAIL & SMTP: A Secure Application for an Unsecure Protocol. Orr Dunkelman. orrd@vipe.technion.ac.il. January 27, 2004 SMTP and QMAIL Slide 1

Proxies. Chapter 4. Network & Security Gildas Avoine

Internet Technology 2/13/2013

Linux MDS Firewall Supplement

Andreas Dittrich, Philipp Reinecke Testing of Network and System Security. example.

Application Note. Using Mercury/32 as an SMTP Relay Client

Talk Internet User Guides Controlgate Administrative User Guide

Mail User Agent Project

Services Deployment. Administrator Guide

Security perimeter white paper. Configuring a security perimeter around JEP(S) with IIS SMTP

TAO Installation Guide v0.1. September 2012

Linux Networking: network services

Sys::Syslog is an interface to the UNIX syslog(3) program. Call syslog() with a string priority and a list of printf() args just like syslog(3).

Protocolo FTP. FTP: Active Mode. FTP: Active Mode. FTP: Active Mode. FTP: the file transfer protocol. Separate control, data connections

Basic Exchange Setup Guide

µtasker Document FTP Client

AXIGEN Mail Server. Quick Installation and Configuration Guide. Product version: 6.1 Document version: 1.0

Solve network scan problems. Common problems and solutions Scan to status Scan to FTP status Job Accounting status...

1 Thunderbird v3 and IMAP/SMTP Configuration

Virtual Private Networks

Novell Identity Manager

Chakchai So-In, Ph.D.

Load Balancing/High Availability Configuration for neoninsight Server

Getting Started With Your Virtual Dedicated Server. Getting Started Guide

How To Set Up A Network Map In Linux On A Ubuntu 2.5 (Amd64) On A Raspberry Mobi) On An Ubuntu (Amd66) On Ubuntu 4.5 On A Windows Box

RFC 821 SIMPLE MAIL TRANSFER PROTOCOL. Jonathan B. Postel. August 1982

Linux VPS with cpanel. Getting Started Guide

Guardian Digital Secure Mail Suite Quick Start Guide

FTP and . Computer Networks. FTP: the file transfer protocol

Dell KACE K1000 Management Appliance. Service Desk Administrator Guide. Release 5.3. Revision Date: May 13, 2011

Introduction to Computer Networks

POP3 Connector for Exchange - Configuration

Healthstone Monitoring System

Configuring CSS Remote Access Methods

Application Monitoring using SNMPc 7.0

Basic Exchange Setup Guide

Mail Server Scenarios and Configurations

sendmail Cookbook Craig Hunt O'REILLY' Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo

Quectel Cellular Engine

1 Introduction: Network Applications

BrightStor ARCserve Backup for Linux

Lepide Software. LepideAuditor for File Server [CONFIGURATION GUIDE] This guide informs How to configure settings for first time usage of the software

Chapter 3 Startup and Shutdown This chapter discusses how to startup and shutdown ETERNUSmgr.

Using RADIUS Agent for Transparent User Identification

Gateway Application

Synthetic Application Monitoring

CS43: Computer Networks . Kevin Webb Swarthmore College September 24, 2015

Linux Administrator (Advance)

F-Secure Messaging Security Gateway. Deployment Guide

XPrint UNIX System Printer Driver Installation SOLARIS 1.X (SUN OS) / SOLARIS 2.X

Cisco Secure PIX Firewall with Two Routers Configuration Example

MPP Manager Users Guide

Implementing MDaemon as an Security Gateway to Exchange Server

How to protect your home/office network?

SNMPc Release 7.0 Disaster Recovery Support. Castle Rock Computing March, 2004

Transcription:

smtp-user-enum User Documentation pentestmonkey@pentestmonkey.net 21 January 2007 Contents 1 Overview 2 2 Installation 2 3 Usage 3 4 Some Examples 3 4.1 Using the SMTP VRFY Command................. 4 4.2 Using the SMTP EXPN Command................. 5 4.3 Using the SMTP RCPT TO Command.............. 6 5 License 7 1

1 Overview smtp-user-enum is a tool for enumerating OS-level user accounts on Solaris via the SMTP service (sendmail). Enumeration is performed by inspecting the responses to VRFY, EXPN and RCPT TO commands. It could be adapted to work against other vulnerable SMTP daemons, but this hasn t been done as of v1.0. 2 Installation smtp-user-enum is just a stand alone PERL script, so installation is as simple as copying it to your path (e.g. /usr/local/bin). It has only been tested under Linux so far. It depends on the following PERL modules which you may need to install first: Socket IO::Handle IO::Select IO::Socket::INET Getopt::Std If you have PERL installed, you should be able to install the modules from CPAN: # perl -MCPAN -e shell cpan> install Getopt::Std 2

3 Usage smtp-user-enum simply needs to be passed a list of users and at least one target running an SMTP service. smtp-user-enum v1.0 ( http://pentestmonkey.net/tools/smtp-user-enum ) Usage: smtp-user-enum.pl [options] (-u username -U file-of-usernames) (-t host -T file-of-targets) options are: -m n Maximum number of processes (default: 5) -M mode Method to use for username guessing EXPN, VRFY or RCPT (default: VRFY) -u user Check if user exists on remote system -f addr From email address to use for "RCPT TO" guessing (default: user@example.com) -U file File of usernames to check via smtp service -t host Server host running smtp service -T file File of hostnames running the smtp service -p port TCP port on which smtp service runs (default: 25) -d Debugging output -t n Wait a maximum of n seconds for reply (default: 5) -v Verbose -h This help message 4 Some Examples For all of the examples below we need a list of potential usernames. The following output demostrates the format for this list: $ head users.txt root bin daemon adm lp sync shutdown halt mail news 3

4.1 Using the SMTP VRFY Command The output below shows how the SMTP server responds differently to VRFY requests for valid and invalid users. It is recommended that a manual check like the following is carried out before running smtp-user-enum. Obviously the tool won t work if the server doesn t respond differently to requests for valid and invalid users. $ telnet 10.0.0.1 25 Trying 10.0.0.1... Connected to 10.0.0.1. Escape character is ^]. 220 myhost ESMTP Sendmail 8.9.3 HELO 501 HELO requires domain address HELO x 250 myhost Hello [10.0.0.99], pleased to meet you VRFY root 250 Super-User <root@myhost> VRFY blah 550 blah... User unknown To use smtp-user-enum to enumerate valid usernames using the VRFY command, first prepare a list of usernames (users.txt) and run the tool as follows: $ smtp-user-enum.pl -M VRFY -U users.txt -t 10.0.0.1 Starting smtp-user-enum v1.0 ( http://pentestmonkey.net/tools/smtp-user-enum ) Scan Information Mode... VRFY Worker Processes... 5 Usernames file... users.txt Target count... 1 Username count... 47 Target TCP port... 25 Query timeout... 5 secs Relay Server... Not used ######## Scan started at Sun Jan 21 18:01:50 2007 ######### root@10.0.0.1: Exists bin@10.0.0.1: Exists daemon@10.0.0.1: Exists lp@10.0.0.1: Exists adm@10.0.0.1: Exists uucp@10.0.0.1: Exists postmaster@10.0.0.1: Exists nobody@10.0.0.1: Exists ftp@10.0.0.1: Exists 4

######## Scan completed at Sun Jan 21 18:01:50 2007 ######### 9 results. 47 queries in 1 seconds (47.0 queries / sec) It s worth noting that postmaster is not actually a valid OS-level user account - it s a mail alias. 4.2 Using the SMTP EXPN Command The output below shows how the SMTP server responds differently to EXPN requests for valid and invalid users. $ telnet 10.0.0.1 25 Trying 10.0.0.1... Connected to 10.0.0.1. Escape character is ^]. 220 myhost ESMTP Sendmail 8.9.3 HELO 501 HELO requires domain address HELO x 250 myhost Hello [10.0.0.99], pleased to meet you EXPN root 250 Super-User <root@myhost> EXPN blah 550 blah... User unknown To use smtp-user-enum to enumerate valid usernames using the VRFY command, first prepare a list of usernames (users.txt) and run the tool as follows (unsurprisingly, we get the same results as above): $ smtp-user-enum.pl -M EXPN -U users.txt -t 10.0.0.1 Starting smtp-user-enum v1.0 ( http://pentestmonkey.net/tools/smtp-user-enum ) Scan Information Mode... EXPN Worker Processes... 5 Usernames file... users.txt Target count... 1 Username count... 47 Target TCP port... 25 Query timeout... 5 secs Relay Server... Not used ######## Scan started at Sun Jan 21 18:01:50 2007 ######### root@10.0.0.1: Exists bin@10.0.0.1: Exists daemon@10.0.0.1: Exists 5

lp@10.0.0.1: Exists adm@10.0.0.1: Exists uucp@10.0.0.1: Exists postmaster@10.0.0.1: Exists nobody@10.0.0.1: Exists ftp@10.0.0.1: Exists ######## Scan completed at Sun Jan 21 18:01:50 2007 ######### 9 results. 47 queries in 1 seconds (47.0 queries / sec) 4.3 Using the SMTP RCPT TO Command The output below shows how the SMTP server responds differently to RCPT TO requests for valid and invalid users. This is often to the most useful technique as VRFY and EXPN are often disabled to prevent username enumeration. $ telnet 10.0.0.1 25 Trying 10.0.0.1... Connected to 10.0.0.1. Escape character is ^]. 220 myhost ESMTP Sendmail 8.9.3 HELO 501 HELO requires domain address HELO x 250 myhost Hello [10.0.0.99], pleased to meet you MAIL FROM:root 250 root... Sender ok RCPT TO:root 250 root... Recipient ok RCPT TO: blah 550 blah... User unknown To use smtp-user-enum to enumerate valid usernames using the RCPT TO command, first prepare a list of usernames (users.txt) and run the tool as follows (again, the results are the same as above): $ smtp-user-enum.pl -M RCPT -U users.txt -t 10.0.0.1 Starting smtp-user-enum v1.0 ( http://pentestmonkey.net/tools/smtp-user-enum ) Scan Information Mode... RCPT Worker Processes... 5 Usernames file... users.txt Target count... 1 Username count... 47 Target TCP port... 25 Query timeout... 5 secs 6

Relay Server... Not used ######## Scan started at Sun Jan 21 18:01:50 2007 ######### root@10.0.0.1: Exists bin@10.0.0.1: Exists daemon@10.0.0.1: Exists lp@10.0.0.1: Exists adm@10.0.0.1: Exists uucp@10.0.0.1: Exists postmaster@10.0.0.1: Exists nobody@10.0.0.1: Exists ftp@10.0.0.1: Exists ######## Scan completed at Sun Jan 21 18:01:50 2007 ######### 9 results. 47 queries in 1 seconds (47.0 queries / sec) 5 License This tool may be used for legal purposes only. Users take full responsibility for any actions performed using this tool. The author accepts no liability for damage caused by this tool. If these terms are not acceptable to you, then do not use this tool. In all other respects the GPL version 2 applies: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 7