How harsh1t-josh1/shn-sqlmap works
sqlmap is a command-line penetration-testing tool that probes web targets for SQL injection, then supports database fingerprinting, data retrieval, filesystem access, and operating-system command execution. The principal workflow runs from user options through target checks and request/injection handling to database-specific enumeration or takeover capabilities. The graph preserves these documented branches, plus core state and API entry points. Edges are limited to README statements and relationships visible in the supplied excerpts or source index; unsampled implementation details are not inferred.
Main entry points: controller.py Scan controller · sqlmap.py CLI entry · inject.py Injection engine · inference.py Blind inference
Components 20
Entry and control
- CLI entry
sqlmap.py - Option parsing
lib/parse/cmdline.py - Scan controller
lib/controller/controller.py - Target checks
lib/controller/checks.py - Scan actions
lib/controller/action.py - HTTP API
sqlmapapi.py
Target probing
- HTTP transport
lib/request/connect.py - Injection engine
lib/request/inject.py - SQL payloads
lib/core/agent.py - Blind inference
lib/techniques/blind/inference.py - GraphQL scanning
lib/techniques/graphql/inject.py - NoSQL scanning
lib/techniques/nosql/inject.py
Database operations
- DBMS dispatch
lib/controller/handler.py - DBMS plugins
plugins/dbms - Database enumeration
plugins/generic/enumeration.py - Database retrieval
plugins/generic/databases.py - Server takeover
lib/takeover
Runtime support
- Shared state
lib/core/data.py - Session persistence
lib/core/session.py
Other components
- Operator
Connections 11
- Operator → CLI entry: runs
- CLI entry → Option parsing: parses options
sqlmap.py - CLI entry → Scan controller: starts scan
sqlmap.py - Scan controller → Target checks: runs checks
lib/controller/controller.py - Scan controller → Scan actions: dispatches actions
lib/controller/controller.py - Scan controller → GraphQL scanning: dispatches scan
lib/controller/controller.py - Scan controller → NoSQL scanning: dispatches scan
lib/controller/controller.py - Injection engine → SQL payloads: uses payload logic
lib/request/inject.py - Blind inference → HTTP transport: sends probes
lib/techniques/blind/inference.py - Database retrieval → Injection engine: queries through
plugins/generic/databases.py - DBMS dispatch → DBMS plugins: loads plugins
lib/controller/handler.py