How moopinger/smugglefuzz works
SmuggleFuzz is a command-line scanner for HTTP/2-to-HTTP/1 downgrade request-smuggling vulnerabilities. Users can scan one or more targets with built-in or custom gadget payloads, submit a single crafted request, or list the gadget sets. The scan workflow parses targets and payloads, establishes HTTP/2 connections, sends crafted frames, and interprets responses and timeouts; optional confirmation resends a timed-out payload with a completing body. The graph follows the shown command-to-library calls and README-described behavior; unsampled implementation details are not expanded.
Main entry points: scan.go Scan command · request.go Request command · root.go Command root · output.go Gadget listing
Components 14
CLI commands
- Program entry
main.go - Command root
cmd/root.go - Scan command
cmd/scan.go - Request command
cmd/request.go - Gadget listing
cmd/output.go
Scan workflow
- Target parsing and TLS
lib/target.go - Scan job state
lib/scanjob.go
HTTP/2 protocol
- HTTP/2 framing and I/O
lib/http2.go
Payloads and results
- Payload import and chunking
lib/payload.go - Built-in gadget sets
lib/constants.go - Response formatting
lib/output.go - Saved confirmations
lib/payload.go
Other components
- User
- HTTP/2 target
Connections 23
- User → Program entry: runs
README.md - Program entry → Command root: executes
main.go - User → Scan command: invokes
README.md - User → Request command: invokes
README.md - User → Gadget listing: invokes
README.md - Command root → Scan command: registers
cmd/scan.go - Command root → Request command: registers
cmd/request.go - Command root → Gadget listing: registers
cmd/output.go - Scan command → Target parsing and TLS: parses and connects
cmd/scan.go - Scan command → Payload import and chunking: imports and chunks
cmd/scan.go - Scan command → Built-in gadget sets: selects defaults
cmd/scan.go - Scan command → Scan job state: creates
cmd/scan.go - Scan command → HTTP/2 framing and I/O: sends and handles
cmd/scan.go - Scan command → Response formatting: formats results
cmd/scan.go - Scan command → Saved confirmations: writes confirmations
cmd/scan.go - Request command → Target parsing and TLS: parses and connects
cmd/request.go - Request command → Payload import and chunking: imports attack
cmd/request.go - Request command → Scan job state: creates
cmd/request.go - Request command → HTTP/2 framing and I/O: sends and handles
cmd/request.go - Request command → Response formatting: formats result
cmd/request.go - Gadget listing → Built-in gadget sets: prints
cmd/output.go - Target parsing and TLS → HTTP/2 target: opens TLS
lib/target.go - HTTP/2 framing and I/O → HTTP/2 target: exchanges frames
lib/http2.go