Packs / curl for Security Testing
curl for Security Testing
20 practical commands for seeing, shaping and checking web traffic with curl
For blue-team learners, homelabbers, junior pentesters and web developers who use curl every day but only scratch its surface. Twenty recipes cover seeing the whole HTTP conversation, headers, redirects and timing, custom headers and HTTP methods, form and JSON data, virtual hosts, basic auth and cookie jars, cookie flags and security headers, certificates, a lab CA, TLS versions and key pinning, robots.txt and server banners, status-code checks, SOCKS tunnels over SSH and script-safe curl. Each recipe was run from Kali against an nginx lab site on Ubuntu Server and Metasploitable 2 on an isolated lab network and shows the real output it produced; anything it uploaded was removed afterwards.

What you get
- curl for Security Testing PDF: 20 recipes
- One-page curl cheat sheet PDF
- Edition 1
What it covers
- See every request, header and redirect
- Shape methods, headers, forms and JSON
- Check logins, cookies and security headers
- Test TLS, pin keys, script it safely
Tested on
- Tool
- curl 8.23.0
- System
- Kali GNU/Linux Rolling
- Lab runs
- 1 Dec 2026, on an isolated lab network
Only send requests to, upload to or log in to systems you own or have written permission to test.

The 20 recipes
See what's really happening
- 01Watch the whole HTTP conversation
- 02Get just the headers
- 03Follow redirects and see every hop
- 04Find out where the time goes
Shape the request
- 05Set your own headers and User-Agent
- 06Find out which methods a server allows
- 07Send form data and JSON
- 08Reach a virtual host by IP address
Logins, cookies and headers
- 09Log in with basic auth, and why it needs HTTPS
- 10Keep a session with a cookie jar
- 11Check cookie flags
- 12Audit a site's security headers
TLS checks
- 13See the certificate curl was given
- 14Trust your lab CA, and why -k is a trap
- 15Test which TLS versions a server accepts
- 16Pin a server's public key
Recon and scripting
- 17Read robots.txt and banners for clues
- 18Check a list of paths for status codes
- 19Reach an internal-only site through SSH
- 20Make curl safe in scripts
Also in a bundle
- The Complete Collection · 9 packs for US$59