Skip to main content

Metasploit modules guide. Auxiliary

Preserved article

This older publication is retained for research history. Current technical applicability has not been asserted; validate versions, commands, and assumptions before use.

Cover image
Article Metadata

Ecosystem Fit​

This page mirrors the original Medium article into the 1200km.com Docusaurus ecosystem. The original article flow, images, screenshots, infographics, and technical blocks are preserved from the export.

Complete Explanation of Auxiliary Mode in Metasploit​

Comprehensive Guide to Metasploit. Part 1

The Ultimate Guide to Metasploit. Part 2

Introduction​

The auxiliary mode in Metasploit is a non-exploit-focused category of modules designed for tasks such as reconnaissance, scanning, enumeration, password brute-forcing, and testing. These modules help gather information, identify vulnerabilities, and assess systems without actively exploiting them. They are essential in the early stages of penetration testing and for non-destructive assessments.

If you want to see all auxiliary modules, open Metasploit and run next command:

show auxiliary
Article image

Standart commands:​

Search module:

search <name>

Use module from list by ID

use 0

Use module by name

use <module name>

Show configuration options:

show options

Set parameters:

set <name of parameter> <parameter>

Run module

run

Now real life examples of usage​

  • Scanners

  • Enumerators

  • Brute-Forcers

  • Vulnerability Scanners

  • Network Discovery

  • Denial of Service (DoS)

1. Scanners​

  • Purpose: Identify open ports, active services, and vulnerabilities in networks or systems.

Examples :​

auxiliary/scanner/portscan/tcp: Scans for open TCP ports.

search auxiliary/scanner/portscan/tcp
Article image
use 0
show options
Article image
set RHOST 192.168.126.130
run
Article image

auxiliary/scanner/http/http_version: Detects the HTTP server version:

search auxiliary/scanner/http/http_version
Article image
use 0
show options
Article image
set RHOSTS https://juice-shop.herokuapp.com/
set RPORT 443
set SSL true
run
Article image

2. Enumerators​

  • Purpose: Gather detailed information about services, configurations, and resources on a system.

Examples :​

  • auxiliary/scanner/smb/smb_enumshares: Lists shared folders in SMB.
search auxiliary/scanner/smb/smb_enumshares
Article image
use 0
show options
Article image
set RHOST 182.x.x.x
run
Article image
  • auxiliary/scanner/http/dir_scanner: Finds hidden web directories.
search auxiliary/scanner/http/dir_scanner
use 0
show options
Article image
set RHOST https://juice-shop.herokuapp.com/
set RPORT 443

You can use custom directions dictionaries.

For example:

set DICTIONARY /usr/share/dirbuster/wordlists/directory-list-lowercase-2.3-medium.txt
Article image

3. Brute-Forcers​

More information about brute force attacks here

  • Purpose: Automate password brute-forcing for authentication protocols like SSH, FTP, and HTTP.

  • Examples:

auxiliary/scanner/ssh/ssh_login: Brute-forces SSH credentials.

search auxiliary/scanner/ssh/ssh_login
Article image
use 0
show options
Article image
set ANONYMOUS_LOGIN true
set PASS_FILE ~/Documents/PasswordCracking/Dictionaries/short.txt
set RHOSTS 192.168.126.130
set USER_FILE ~/Documents/PasswordCracking/Dictionaries/1000_usernames.txt
run
Article image

Succsess

auxiliary/scanner/ftp/ftp_login: Brute-forces FTP logins.

search auxiliary/scanner/ftp/ftp_login
Article image
use 0
show options
Article image
set ANONYMOUS_LOGIN true
set PASS_FILE ~/Documents/PasswordCracking/Dictionaries/short.txt
set RHOSTS 192.168.126.130
set USER_FILE ~/Documents/PasswordCracking/Dictionaries/1000_usernames.txt
run
Article image

4. Vulnerability Scanners​

Purpose: Check for known vulnerabilities in services or protocols.

  • Examples:

auxiliary/scanner/smb/smb_ms17_010: Scans for EternalBlue vulnerability.

search auxiliary/scanner/smb/smb_ms17_010
use 0
show options
set RHOSTS 192.168.126.150
run
Article image

5. Network Discovery​

Purpose: Identify hosts, devices, and network configurations.

Examples:

auxiliary/scanner/discovery/arp_sweep: Identifies active hosts on a subnet.

Run msfconsole as sudo

search auxiliary/scanner/discovery/arp_sweep
use 0
show options
set INTERFACE vmnet8
set RHOSTS 192.168.126.13
run
Article image
  • auxiliary/scanner/rdp/rdp_scanner: Scans for RDP-enabled devices.
search auxiliary/scanner/rdp/rdp_scanner
use 0
show options
set RHOSTS 192.168.126.130
run
Article image

6. Denial of Service (DoS)​

Purpose: Test systems for susceptibility to DoS attacks.

Examples:

auxiliary/dos/http/slowloris: Simulates Slowloris DoS on HTTP servers.

search auxiliary/dos/http/slowloris
use 0
show options
set rhost juice-shop.herokuapp.com
set rport 443
sel ssl true
run
Article image

auxiliary/dos/tcp/synflood: Launches a TCP SYN flood attack.

search auxiliary/dos/tcp/synflood
use 0
set INTERFACE wlan0
set RHOSTS juice-shop.herokuapp.com
set RPORT 443
run
Article image

Search and try other modules!​

Auxiliary Module Reference - Metasploit Unleashed *The Metasploit Framework includes hundreds of auxiliary modules that perform scanning, fuzzing, sniffing, and much…*www.offsec.com

Good luck!​

1200km@gmail.com

Published · Last updated