Labs / Cryptography at Work
Road 19 of 33
Cryptography at Work
Cryptography under attack and put right: hashing, password cracking, broken TLS and SSH keys.
Start this roadHashes, passwords and obfuscation
Prove a file, salt a store, crack weak hashes, peel a dropper.
- 01 Hash integrity: verifying a file is the one you meant to get Fingerprint a file with SHA-256, see one byte change everything and a self-published checksum lie, then close the gap with a keyed hash.
- 02 Salted passwords: why a leaked hash table still gives up its passwords Read a leaked password table, crack it with a precomputed lookup, then watch a per-user salt and a slow hash take the attack apart.
- 03 Password cracking: turning a leaked hash table back into passwords Identify each hash in a dump by its shape, crack the fast ones with john and rockyou, then meet the bcrypt row that won't fall.
- 04 Targeted wordlists: cracking passwords coined from the target's own words Two hashes rockyou can't touch fall to a wordlist built from the target itself: cewl scrapes words, john rules reshape them, crunch sprays the year.
- 05 Obfuscated scripts: peeling an encoded dropper back to what it does Peel a wall of base64, then hex, then a one-byte XOR, with standard tools and no key, until the payload proves obfuscation isn't encryption.
TLS and keys that break
Intercept HTTPS, read a weak handshake, and ride a leaked SSH key.
- 01 TLS interception: when a trusted certificate still lies Watch TLS refuse a box's forged certificate, then trust its CA to read a login in the clear, then shut it out with certificate pinning.
- 02 Weak TLS configuration: a valid certificate over a dated handshake Enumerate what a portal's decade-old TLS still accepts, prove a TLS 1.0 handshake completes, measure it against a hardened twin, and name the fix.
- 03 Leaked private key: a backup that still holds a working login Find an SSH private key in a decommissioned host's exposed backup, log into the live server with no password, then revoke the key and rotate.