Packs / curl for Security Testing

Pack 09

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.

US$12local taxes calculated at checkout

Buy on Gumroad

Checkout and download are handled by Gumroad.

Cover of curl for Security Testing

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.

A sample page from curl for Security Testing
A page from the pack.

The 20 recipes

See what's really happening

  1. 01Watch the whole HTTP conversation
  2. 02Get just the headers
  3. 03Follow redirects and see every hop
  4. 04Find out where the time goes

Shape the request

  1. 05Set your own headers and User-Agent
  2. 06Find out which methods a server allows
  3. 07Send form data and JSON
  4. 08Reach a virtual host by IP address

Logins, cookies and headers

  1. 09Log in with basic auth, and why it needs HTTPS
  2. 10Keep a session with a cookie jar
  3. 11Check cookie flags
  4. 12Audit a site's security headers

TLS checks

  1. 13See the certificate curl was given
  2. 14Trust your lab CA, and why -k is a trap
  3. 15Test which TLS versions a server accepts
  4. 16Pin a server's public key

Recon and scripting

  1. 17Read robots.txt and banners for clues
  2. 18Check a list of paths for status codes
  3. 19Reach an internal-only site through SSH
  4. 20Make curl safe in scripts

Also in a bundle