sam1902 Posted May 25, 2016 Share Posted May 25, 2016 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 Quote Link to comment Share on other sites More sharing options...
sam1902 Posted May 25, 2016 Author Share Posted May 25, 2016 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 Quote Link to comment Share on other sites More sharing options...
digininja Posted May 25, 2016 Share Posted May 25, 2016 Give us a full work through of what happens, the command you run, the exact output and the result (file or not). Quote Link to comment Share on other sites More sharing options...
sam1902 Posted May 25, 2016 Author Share Posted May 25, 2016 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 Quote Link to comment Share on other sites More sharing options...
digininja Posted May 25, 2016 Share Posted May 25, 2016 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 Quote Link to comment Share on other sites More sharing options...
sam1902 Posted May 25, 2016 Author Share Posted May 25, 2016 Thanks dude ! I was stuck on this all the day ^_^ Quote Link to comment Share on other sites More sharing options...
digininja Posted May 26, 2016 Share Posted May 26, 2016 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.