Docs / Console, ecosystem and developer tools / Module Type Ecosystem
GitHub

Console, ecosystem and developer tools

Module Type Ecosystem

The root module directory is modules/. Two files strongly structure this catalog: core/lib/module_manager.py and core/utils/module_static_metadata.py. analysis and generated complete the official catalog.

Overview --- the sixteen families

Canonical typeDirectoryRole in one sentence
auxiliarymodules/auxiliary/Support: network scan, fuzz, servers, admin.
exploitsmodules/exploits/Exploits a flaw and delivers a payload.
payloadsmodules/payloads/Code executed on the target (shell, stager).
listenersmodules/listeners/Receives reverse connections / callbacks.
encodersmodules/encoders/Encodes the payload (signature evasion).
transformersmodules/encoders/Obfuscates C2 flow between listener and agent.
postmodules/post/Actions after compromise (gather, pivot).
workflowmodules/workflow/Automates a sequence of modules.
backdoorsmodules/backdoors/Webshells and persistent access.
browser_auxiliarymodules/browser_auxiliary/Browser support modules.
browser_exploitsmodules/browser_exploits/Client-side exploits (XSS, social eng.).
docker_environmentsmodules/docker_environments/Docker isolated test environments (DVWA, WebGoat).
analysismodules/analysis/Forensic analysis outside live exploitation.
shortcutmodules/shortcut/One-shot shortcuts to common workflows.
generatedmodules/generated/Generated modules (API import, skeletons).
inventory
search --type scanner --limit 5
search --type exploits --limit 5

Diagram --- how types connect

Typical attack chain (isolated test environment or authorized mission). Use this schema as a reference:

                    +------------------+
                    | docker_environments|
                    |  (dvwa, webgoat)   |
                    +---------+--------+
                              | target up
                              v
+----------+    +----------+  |  +------------------+
| auxiliary|    | scanner  |--+->| findings / vulns  |
| portscan |    | HTTP *   |     | (workspace vuln) |
| honeypot |    +----------+     +--------+---------+
+----------+                              |
                                          v
                               +--------------------+
                               | exploits (+ check) |
                               +----------+---------+
                                          |
          +-------------------------------+-------------------------------+
          |                               |                               |
          v                               v                               v
   +-------------+                 +-------------+                 +-------------+
   |  payloads   |                 |  encoders   |                 | transformers |
   | singles/... |                 | cmd/base64  |                 | python/xor  |
   +------+------+                 +------+------+                 +------+------+
          |                               |                               |
          +-------------------------------+-------------------------------+
                                          |
                                          v
                               +--------------------+
                               |     listeners      |
                               | multi/reverse_tcp  |
                               +----------+---------+
                                          | session
                                          v
                               +--------------------+
                               |        post        |
                               | gather / pivot     |
                               +----------+---------+
                                          |
          +-------------------------------+-------------------------------+
          |                               |                               |
          v                               v                               v
   +-------------+                 +-------------+                 +-------------+
   |  backdoors  |                 |  workflow   |                 |  shortcut   |
   | php_get     |                 | simple_wf   |                 | example_*   |
   +-------------+                 +-------------+                 +-------------+

Parallel branch (client-side):
  browser_server --> browser_exploits --> listener --> sessions
                 \-> browser_auxiliary (keylogger, harvest)

Outside the offensive chain:
  analysis/forensic/*  |  generated/api/*  |  plugins (extensions CLI)

Reading the diagram:

  1. Environment --- docker_environments or real target in scope.
  2. Discovery --- auxiliary (network) and scanner (application).
  3. Exploitation --- exploits with payloads, optionally encoders and transformers.
  4. C2 --- listeners before any reverse shell.
  5. After access --- post, then optionally backdoors.
  6. Orchestration --- workflow and shortcut chain the blocks.
  7. Browser --- parallel branch via browser_server.

Type scanner

Role

Probe modules: HTTP, SMB, Bluetooth, etc. Produce ModuleResult with severity. Feed scanner -u, the agent, and campaign.

Workflow

  1. use <scanner_path> --- e.g. use scanner/http/security_headers_detect.
  2. show options --- target (rhost, rport, ssl, threads).
  3. set rhost <target> --- authorized IP or hostname.
  4. run --- execute the probe.
Tips: use the global scanner -u URL command to parallelize; use for a specific module and verbose output.

Real paths

modules/scanner/http/server_banner_detect.py
modules/scanner/http/security_headers_detect.py
modules/scanner/http/sensitive_files_detect.py
modules/scanner/http/phpinfo_detect.py
modules/scanner/smb/smbv1_detect.py

Search and inventory

search --type scanner --protocol http
search --type scanner --protocol smb
inventory --type scanner --protocol http --verbose
inventory --only gaps --type scanner