Passwords & Hashes
Educational purposes only
These notes are written strictly for CTF (Capture The Flag) challenges and educational learning. Do not use these techniques against systems you do not own or have explicit written permission to test. The author does not endorse or support any illegal or unauthorized activity.
Base64
Python converts
# Decimal => Hex => Ascii
hex("DECIMAL NUMBER")
b = bytes.fromhex("HEX NUMBER")
print(b.decode("ASCII"))
Find the format of the hash
# bash
for i in descrypt bsdicrypt md5crypt bcrypt LM AFS tripcode dummy crypt;
do john --format=$i yourfile
done
# fish
for i in descrypt bsdicrypt md5crypt bcrypt LM AFS tripcode dummy crypt
echo $i
john --format=$i unshadow.txt
end