Skip to content

Commit

Permalink
Merge pull request #275 from Gallopsled/asm-osx-sane
Browse files Browse the repository at this point in the history
Make pwnlib.asm.asm more robust
  • Loading branch information
IdolfHatler committed Jan 1, 2015
2 parents 8b8cae8 + 063a1a4 commit 93396dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def asm(shellcode, vma = 0, **kwargs):
osx = (platform.system() == 'Darwin')

assembler = _assembler()
objcopy = _objcopy() + ['-j.shellcode' if not osx else '-jLC_SEGMENT..shellcode."ax"', '-Obinary']
objcopy = _objcopy() + ['-j', '.shellcode' if not osx else '*.shellcode*', '-Obinary']
code = '.org %#x\n' % vma
code += _arch_header()
code += cpp(shellcode)
Expand Down

0 comments on commit 93396dd

Please sign in to comment.