Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve x64 exe payload generation without using find_payload_tag #4381

Closed
wchen-r7 opened this issue Dec 12, 2014 · 1 comment
Closed

Improve x64 exe payload generation without using find_payload_tag #4381

wchen-r7 opened this issue Dec 12, 2014 · 1 comment
Labels

Comments

@wchen-r7
Copy link
Contributor

As an user, if I want to use a custom 64-bit windows template (such as calc), I shouldn't have to manually modify the template and shove a tag "PAYLOAD:" in it. It makes the template feature almost unusable:

$ ./msfvenom -p windows/x64/meterpreter/bind_tcp -x /tmp/templates/64_calc.exe -f exe > /tmp/fake_64_calc.exe
No platform was selected, choosing Msf::Module::Platform::Windows from the payload
No Arch selected, selecting Arch: x86_64 from the payload
Found 0 compatible encoders
Invalid PE EXE subst template: missing "PAYLOAD:" tag

One way to work around that is instead of using exe format, do exe-only. But if exe-only can do it, why can't exe? The find_payload_tag way feels like a dirty trick.

@Tikam02
Copy link

Tikam02 commented May 5, 2017

root@kali:~# msfvenom -p windows/x64/meterpreter/bind_tcp -x /tmp/templates/64_calc.exe -f exe > /tmp/fake_64_calc.exe
No platform was selected, choosing Msf::Module::Platform::Windows from the payload
No Arch selected, selecting Arch: x64 from the payload
No encoder or badchars specified, outputting raw payload
Payload size: 484 bytes
Error: No such file or directory @ rb_file_s_size - /tmp/templates/64_calc.exe

i think there is issue in your command like you've not selected Any Encoder
not selected or included any platform and also not selected any Arch.

Try to include Three of them.

@ccondon-r7 ccondon-r7 added the usability Usability improvements label May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants