Skip to content
Tutorials Center
My learning

Topics

Lesson 7 of 37 ยท Architecture and Modules

Module Types: Exploits, Auxiliary, Post, Payloads and More

Learn each Metasploit module type, exploit, auxiliary, post, payload, encoder, nop and evasion: what it does, when you use it and how defenders think about each.

Metasploit groups its modules into types. The type is the first part of the path and tells you what the module is for. Picking the right type is half of choosing the right tool, and each type also leaves a different kind of trace that defenders can look for.

The types at a glance

Modules that act on a target

Exploit Triggers a specific flaw.
Auxiliary Scans, probes, fuzzes.
Post Runs after access exists.

These three do the work.

1 / 2

Exploit modules

An exploit module takes advantage of a specific vulnerability in a specific product or protocol. It has a target list (versions or operating systems), a rank and usually a check method. Running one against a vulnerable service delivers a payload of your choice. Exploits are named by platform and product, for example exploit/windows/... or exploit/linux/... followed by the service.

Defender's view: a successful exploit usually leaves a crash, an unusual child process of a service, or a failed attempt in the application log before the successful one. Patching the vulnerability makes the module fail.

Auxiliary modules

Auxiliary modules do everything that is not "deliver a payload": scanners, banner grabbers, brute-force and credential checkers, fuzzers, denial-of-service testers, servers that capture credentials and gather information from services. They are the most numerous and most commonly used in recon (see service enumeration).

Defender's view: scans produce bursts of connections from one source to many ports or hosts, which is easy to alert on.

Post-exploitation modules

Post modules run on an existing session (access you already have): gather system information, list installed software, check configuration or collect evidence. Chapter 5 covers them.

Payloads

A payload is the code that executes on the target after a flaw is triggered, giving you a session or running a command. They are split into singles, stagers and stages, explained in payloads.

Encoders and NOPs

  • Encoders transform payload bytes, originally to avoid characters that break an exploit (such as null bytes) and later to change what the payload looks like. Modern defences detect encoded payloads easily, so encoders are not a reliable way to hide anything.
  • NOPs generate "no operation" padding that fills buffers in memory-corruption exploits.

Evasion modules

Evasion modules build payload files designed to test whether security software catches them. Their purpose in a legitimate test is to measure detection, not to defeat it permanently: if a simple evasion module bypasses a defence, that is a finding to fix.

A taxonomy in code

The stand-in below classifies module paths into the types and counts them in a made-up list. It also attaches a short defender note, imitating the table above.

Python Classify modules by type

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Choosing a type for a task

Ask what you want to know or do:

Goal Type
Find out which hosts and services exist auxiliary (scanner)
Prove a specific flaw is exploitable exploit
Learn about a compromised test machine post
Check if endpoint security catches a file evasion
Produce a payload file for a lab test payload via msfvenom

The stand-in turns the table into a tiny decision helper.

Python Pick the module type for a goal

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Counting modules by type in the console

The console command show lists each type: show exploits, show auxiliary, show post, show payloads, show encoders, show nops, show evasion. On a full install some lists are very long, so search type:... with filters is better. show all prints everything and is rarely useful.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which module type does most scanning and information gathering?

    Auxiliary modules cover scanners, gatherers, fuzzers and similar tasks.
  2. 2. When do post modules run?

    Post modules need an existing session on the target.
  3. 3. What is the legitimate purpose of an evasion module in a test?

    Evasion modules help testers find gaps in detection that defenders can close.
  4. 4. What does an exploit module need in addition to the flaw?

    An exploit triggers the flaw; the payload is what then runs.

Summary

  • Types: exploit, auxiliary, post, payload, encoder, nop, evasion.
  • Auxiliary modules handle scanning and recon; exploits trigger flaws; post modules work on sessions.
  • Each type leaves traces that defenders can monitor.
  • Choose the type by what you want to learn or prove.

Next: Anatomy of a Module