Metasploit mailing list archives
Re: Mac 64-bit Shellcode
From: HD Moore <hdm () metasploit com>
Date: Tue, 31 May 2011 19:40:37 -0500
On 5/31/2011 5:11 PM, Ty Miller wrote:
Hey guys, I am currently putting together some Mac 64-bit shellcode but am having troubles extracting the shellcode on Linux. I can do it fine on Mac using nasm and otool, which produces the expected small shellcode, but I want to specifically do it from Linux as a central development location. I'm developing on BT5. I can compile it as macho64 using nasm. objdump doesn't recognise the macho64 format. I also used xxd and can see the small amount of shellcode in amongst heaps of other junk, but I cant see an easy way to automatically strip the shellcode from the xxd output.
You might try building a generic macho binary that reads a file and executes in RWX memory, then just use nasm -f bin to build raw shellcode blobs and send those to your target darwin box, along with your load application. -HD _______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
Current thread:
- Mac 64-bit Shellcode Ty Miller (May 31)
- Re: Mac 64-bit Shellcode Canberk BOLAT (May 31)
- Re: Mac 64-bit Shellcode Carlos Perez (May 31)
- Re: Mac 64-bit Shellcode HD Moore (May 31)
- Re: Mac 64-bit Shellcode Ty Miller (Jun 01)
- Re: Mac 64-bit Shellcode Pete Smith (Jun 01)
- Re: Mac 64-bit Shellcode Ty Miller (Jun 02)
- Re: Mac 64-bit Shellcode Ty Miller (Jun 01)