Skip to content
Web Code Snippets

Web Code Snippets

Building blocks

Scaffolding (4)
Reusable exploit-script foundations: argument parsing, requests sessions, response validation, Boolean oracles, and command loops.
HTTP (13)
Sending requests the way a target expects them: query params, form and JSON bodies, multipart uploads, cookies, bearer tokens, and CSRF flows.
Output Parsing (13)
Extracting values from HTML, structured responses, generated files, and command output surrounded by markers.
Regex (3)
Pulling values out of text with regular expressions: capturing between fixed markers, non-greedy multiline capture with re.DOTALL, and collecting every match with findall.
Encodings (7)
Base64, URL, hex and HTML codecs, nested payload strings, and JWT decode, tampering, and forge.
Utils (6)
Common transformations, random value generators, and file operations used across exploit scripts.
Subprocess (2)
Running blocking commands and retaining handles to long-running background processes.
WebSockets (3)
Synchronous and asyncio WebSocket clients, and a blind oracle that drives extraction over a single socket.
Concurrency (3)
Concurrent request execution for race conditions and finite-keyspace brute force.
Infra (5)
Background HTTP servers, callback capture, request-log parsing, and Ngrok tunnels.
Debugging (2)
Runtime inspection for containerized applications through VS Code or the command line.
Frameworks (5)
Framework and runtime behavior that affects exploit development.
OOB Exfil (4)
Hosted callback exfiltration with webhook.site: create inboxes, send command output, and poll captured data.
pwntools (1)
A reverse-shell listener that binds before the exploit trigger, waits for the callback, and opens an interactive session.
Archives (6)
Building and reading ZIP and TAR files, including Zip-Slip and symlink-traversal archives.
Chains (5)
End-to-end skeletons for SSRF scans, second-order injection, cache poisoning, renderer file reads, and arbitrary file write to hot-reload RCE.

Injection techniques