Skip to content

Commit

Permalink
Support additional registers in ARM64 JOP patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
BinyaminSharet authored Feb 1, 2017
1 parent c7cf905 commit dee07cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ropgadget/gadgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def addJOPGadgets(self, section):
arch_mode = CS_MODE_BIG_ENDIAN
elif arch == CS_ARCH_ARM64:
gadgets = [
[b"[\x00\x20\x40\x60\x80\xa0\xc0\xe0]{1}[\x00\x02]{1}\x1f\xd6", 4, 4], # br reg
[b"[\x00\x20\x40\x60\x80\xa0\xc0\xe0]{1}[\x00\x02]{1}\x5C\x3f\xd6", 4, 4] # blr reg
[b"[\x00\x20\x40\x60\x80\xa0\xc0\xe0]{1}[\x00\x01\x02]{1}\x1f\xd6", 4, 4], # br reg
[b"[\x00\x20\x40\x60\x80\xa0\xc0\xe0]{1}[\x00\x01\x02]{1}\x5C\x3f\xd6", 4, 4] # blr reg
]
arch_mode = CS_MODE_ARM
elif arch == CS_ARCH_ARM:
Expand Down

0 comments on commit dee07cd

Please sign in to comment.