Jump to content

Recommended Posts

Posted

Hello,

I'm having some troubles while trying to export some OSX payload for testing purpose using msfvenom and the -o flag. Here is what I enter:

sudo msfvenom -a x86 --platform OSX -p osx/x86/isight/bind_tcp -b "\x00" -f elf -o someNameHere

I'm working on Captain's OSX and whenever I open a 'free' access folder (Documents folder i.e.), msfvenom return me 

Posted

a positive feedback:

Found 10 compatible encoders
Attempting to encode payload with 1 iterations of x86/shikata_ga_nai
x86/shikata_ga_nai succeeded with size 171 (iteration=0)
x86/shikata_ga_nai chosen with final size 171
Payload size: 171 bytes

But no file :C

I hope someone would be nice and help me, TIA

Regards,

Sam

Posted

Give us a full work through of what happens, the command you run, the exact output and the result (file or not). 

Posted
4 hours ago, digininja said:

Give us a full work through of what happens, the command you run, the exact output and the result (file or not). 

I told you, I was trying to run the following command:

sudo msfvenom -a x86 --platform OSX -p osx/x86/isight/bind_tcp -b "\x00" -f elf -o exportedFile

and the current opened directory was /User/Documents/ but when I ran the previous command, nothing happnd. No file. Only this text on the prompt:

Found 10 compatible encoders
Attempting to encode payload with 1 iterations of x86/shikata_ga_nai
x86/shikata_ga_nai succeeded with size 171 (iteration=0)
x86/shikata_ga_nai chosen with final size 171
Payload size: 171 bytes

It turns out that しかた が ない succreeded and the payload has been succefully generated but there is no output :C :C

Posted

It's because you are trying to create an elf binary for OSX but OSX can't use elf so it is failing. Drop the file type and you'll get an extra line on the output and the file will be created:

 

$ ./msfvenom -a x86 --platform OSX -p osx/x86/isight/bind_tcp -b "\x00" -o exportedFile
Found 10 compatible encoders
Attempting to encode payload with 1 iterations of x86/shikata_ga_nai
x86/shikata_ga_nai succeeded with size 171 (iteration=0)
x86/shikata_ga_nai chosen with final size 171
Payload size: 171 bytes
Saved as: exportedFile

$ ls exportedFile
exportedFile


 

Posted

I reported the lack of an error back to the team and on the latest version you now get an error message:

$ ./msfvenom -a x86 --platform OSX -p osx/x86/isight/bind_tcp -b "\x00" -f elf -o exportedFile
Found 10 compatible encoders
Attempting to encode payload with 1 iterations of x86/shikata_ga_nai
x86/shikata_ga_nai succeeded with size 171 (iteration=0)
x86/shikata_ga_nai chosen with final size 171
Payload size: 171 bytes
Error: The payload could not be generated, check options


 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...