454 Commits

Author SHA1 Message Date
Jonathan Salwan e87254d8cd Merge pull request #155 from SweetVishnya/v6.0
Add version 6.0
v6.0
2020-01-21 15:50:29 +01:00
Alexey Vishnyakov 5fef7f53ea Add version 6.0 2020-01-21 16:02:43 +03:00
Jonathan Salwan 4d979cd802 Merge pull request #154 from SweetVishnya/more-jop
More JOP gadgets
2020-01-14 20:36:18 +01:00
Alexey Vishnyakov 67d32be5d9 Add x86 jmp offset 2020-01-14 18:53:42 +03:00
Alexey Vishnyakov e7c1aa3e58 Add MIPS j and jal 2020-01-14 17:47:58 +03:00
Alexey Vishnyakov 30595d1385 Add more registers for MIPS jr and jalr 2020-01-14 17:12:58 +03:00
Jonathan Salwan 732d9ba9da Merge pull request #151 from SweetVishnya/v5.9
Add version 5.9
v5.9
2019-10-29 09:20:24 +01:00
Alexey Vishnyakov 472f1fe889 Add version 5.9 2019-10-29 11:16:27 +03:00
Jonathan Salwan 965c022cf3 Merge pull request #150 from nurmukhametov/ignore_gadgets_with_bad_instructions
Ignore gadgets that contain misdissasembled instructions
2019-10-28 17:59:12 +01:00
Jonathan Salwan ed93b746a6 Merge pull request #147 from nurmukhametov/fix-python3-opcode-memstr
Fix opcode and memstr options for python3.
2019-10-28 17:59:01 +01:00
Alexey Nurmukhametov f69842ba4c Ignore gadgets that contain misdissasembled instructions 2019-10-28 19:21:40 +03:00
Jonathan Salwan 811b66cd6e Merge pull request #149 from flashspys/patch-1
fixed typo
2019-09-30 23:03:56 +02:00
Felix Wehnert 7a3c8dbbb7 fixed typo 2019-09-30 22:25:05 +02:00
Alexey Nurmukhametov 703f88db21 Fix opcode and memstr options for python3. 2019-08-26 17:33:02 +03:00
Jonathan Salwan a448d99596 Fix version 5.8 2019-06-13 13:17:19 +02:00
Jonathan Salwan 4eac4cb716 Add version 5.8 v5.8 2019-06-13 13:11:07 +02:00
Jonathan Salwan c6439de2f7 Fix python3 2019-06-13 13:10:11 +02:00
Jonathan Salwan a186598657 Merge pull request #139 from migounette/master
Fix issue with python 3.7.5
2019-06-13 12:38:06 +02:00
Jonathan Salwan 9583a53595 Merge pull request #141 from SweetVishnya/bi-endianness
Support multiple endianness
2019-06-13 12:37:15 +02:00
Alexey Vishnyakov b9a74286c2 Support multiple endianness 2019-06-13 13:29:34 +03:00
Yann Stephan 5dc86f3cab Fix issue with python 3.7.5
eg. ROPgadget --binary /bin/ls --dump --all --depth 6

============================================================
Traceback (most recent call last):
  File "/usr/local/bin/ROPgadget", line 4, in <module>
    __import__('pkg_resources').run_script('ROPGadget==5.7', 'ROPgadget')
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1460, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python3.7/site-packages/ROPGadget-5.7-py3.7.egg/EGG-INFO/scripts/ROPgadget", line 12, in <module>
  File "/usr/local/lib/python3.7/site-packages/ROPGadget-5.7-py3.7.egg/ropgadget/__init__.py", line 24, in main
  File "/usr/local/lib/python3.7/site-packages/ROPGadget-5.7-py3.7.egg/ropgadget/core.py", line 206, in analyze
  File "/usr/local/lib/python3.7/site-packages/ROPGadget-5.7-py3.7.egg/ropgadget/core.py", line 111, in __lookingForGadgets
AttributeError: 'bytes' object has no attribute 'encode'
2019-06-04 18:24:05 +02:00
Jonathan Salwan a5ab76a0d4 Fix version 5.7 v5.7 2019-02-28 09:33:50 +01:00
Jonathan Salwan 2be1cf2334 Merge pull request #136 from Kyle-Kyle/master
fix wrong search in range implementation
2019-02-28 09:24:36 +01:00
Jonathan Salwan 4294f7f0ac Merge pull request #132 from mordak/arm64-blacklist
Add blacklisted instructions for arm64.
2019-01-09 19:10:43 +01:00
Kyle ZENG 97f9b63659 fix default value check 2019-01-05 15:18:33 -08:00
Kyle ZENG c744d7b708 fix a misalignment issue 2019-01-05 14:46:46 -08:00
Kyle ZENG 0517edf138 fix wrong search-in-range implementation 2019-01-05 14:22:42 -08:00
Jonathan Salwan ff8d753ebd Merge pull request #135 from sudhackar/master
Fixing bytes match issue for strings in python3
2018-12-06 14:34:25 +01:00
Sudhakar Verma f37850e854 Fixing bytes match issue for strings in python3 2018-12-06 18:50:12 +05:30
Jonathan Salwan 3c3d8418f5 Merge pull request #127 from SweetVishnya/master
Exit with an appropriate return code
2018-12-06 13:11:05 +01:00
todd 7484fd8399 Add blacklisted instructions for arm64. 2018-09-30 09:12:29 -04:00
Alexey Vishnyakov 0f74de5db1 Exit with an appropriate return code 2018-04-04 04:58:59 +03:00
Jonathan Salwan 0dc14e7ba8 Merge pull request #125 from ftronel/fix-opcode
Fix opcode option.
2017-12-25 12:28:11 +01:00
Frédéric Tronel 4962f40248 Fix opcode option.
Opcodes can contains hexadecimal values whose associated ASCII characters corresponds
to special characters interpreted as part of a regular expression (typically 0x5B='[').
Calling re.escape before using the opcodes, will escape all these characters, leaving
others unchanged.
2017-12-25 12:18:08 +01:00
Jonathan Salwan 03a8ca0c50 Merge pull request #121 from robinleander/master
BadBytes python3 compatability
2017-11-12 10:39:32 +01:00
crave 205af0fc7a BadBytes python3 compatability 2017-11-10 00:17:01 +01:00
Jonathan Salwan 3480b0517a Merge pull request #116 from bensmrs/master
options.py: Python3 compatibility
2017-08-23 15:50:52 +02:00
Jonathan Salwan 952e5628ce Fix regex conflict 2017-08-23 15:48:28 +02:00
bensmrs 5c6fa4a99c options.py: Python3 compatibility 2017-08-02 17:42:26 +02:00
Jonathan Salwan 016d0a92bd Merge pull request #114 from RecursiveLambdaGod/master
"Hi I'm the Recursive Lambda God. I've refactored your codebase."
2017-04-29 22:57:54 +02:00
Recursive Lambda God 0f69f910d4 "Recursive Lambda Refactor V1" 2017-04-29 15:55:29 -04:00
Jonathan Salwan 58e8a7dddf Merge pull request #113 from jbrower95/master
Show only call-preceded gadgets
2017-04-23 12:19:46 +02:00
justin 6dfd6c1812 warn for non-x86 arch 2017-04-02 23:33:44 -04:00
justin 4734ba2d86 Implement filter for call-preceded gadgets. 2017-04-02 23:28:37 -04:00
Jonathan Salwan 198e09cd9b Merge pull request #110 from aagallag/badbytes-range
Add support for specifying a range of badbytes
2017-03-24 09:49:13 +01:00
Aaron Gallagher f5d4533444 Add support for specifying a range of badbytes 2017-03-23 23:46:30 -07:00
Jonathan Salwan 9351c75387 Merge pull request #109 from mumbel/master
Change pop {pc} to ldm {pc}
2017-03-14 15:11:23 +01:00
mumbel 86585827ea Changes to ARM64 branch instructions
- small bugix, removed "\x5C" from 'blr reg'
- Changed regex for Rn by adding 0x03 to allow for X[24-31]
- Changed 'br reg' to include 'ret reg'
    - current only allows for 'ret lr'
    - difference between RET (\x5f) and JMP (\x1f) is a subroutine hint
2017-02-11 15:03:18 -06:00
mumbel e19d4e844c Change pop {pc} to ldm {pc}
Changes pop, synonym for LDMIA sp! {reglist}, to include more variations of LDM {,pc}.
This regex matches: always condition, any addressing mode, either S-bit, any Rn except pc, and pc in reglist.
2017-02-11 13:13:54 -06:00
Jonathan Salwan cfb2f08369 Merge pull request #104 from BinyaminSharet/arm64-jop-patterns
Support additional registers in ARM64 JOP patterns
2017-02-01 10:26:19 +01:00