Permalink
Browse files

wqAdded support for ARM thumb mode BX SP and BLX SP gadgets

  • Loading branch information...
binaryninja committed Jun 10, 2015
1 parent 6ab415c commit 32a6455b71a01bf647f95bff7b36939fac32a2e8
Showing with 2 additions and 2 deletions.
  1. +2 −2 ropgadget/gadgets.py
View
@@ -155,8 +155,8 @@ def addJOPGadgets(self, section):
elif arch == CS_ARCH_ARM:
if self.__options.thumb or self.__options.rawMode == "thumb":
gadgets = [
- [b"[\x00\x08\x10\x18\x20\x28\x30\x38\x40\x48\x70]{1}\x47", 2, 2], # bx reg
- [b"[\x80\x88\x90\x98\xa0\xa8\xb0\xb8\xc0\xc8\xf0]{1}\x47", 2, 2], # blx reg
+ [b"[\x00\x08\x10\x18\x20\x28\x30\x38\x40\x48\x70\x6a]{1}\x47", 2, 2], # bx reg
+ [b"[\x80\x88\x90\x98\xa0\xa8\xb0\xb8\xc0\xc8\xf0\x6a]{1}\x47", 2, 2], # blx reg
[b"[\x00-\xff]{1}\xbd", 2, 2] # pop {,pc}
]
arch_mode = CS_MODE_THUMB

0 comments on commit 32a6455

Please sign in to comment.