439 Commits

Author SHA1 Message Date
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
bsharet dee07cd42e Support additional registers in ARM64 JOP patterns 2017-02-01 08:58:43 +02:00
Jonathan Salwan c7cf9054a9 Merge pull request #102 from elvanderb/master
fix du loader + ajout du support de ARM64
2016-11-25 12:38:02 +01:00
Eloi Vanderbeken 135ad1a3e0 fix du loader + ajout du support de ARM64 2016-11-25 12:35:30 +01:00
Jonathan Salwan 700c97e91e Merge pull request #101 from richo/patch-1
Fix missing commas in gadgets.py
2016-11-22 09:13:37 +01:00
richö butts f54e73d9a0 Fix missing commas in gadgets.py 2016-11-21 19:54:16 -08:00
Jonathan Salwan b3c2cfe4de Merge pull request #100 from wmliang/master
added MPX gadget
2016-11-20 11:57:24 +01:00
Lucas 48777f0c8a added MPX gadget 2016-11-20 16:04:10 +08:00
Jonathan Salwan dcd6da0da5 Merge pull request #99 from rwfpl/master
Fixed issue #77
2016-10-26 18:56:20 +02:00
ReWolf 2c86043447 Fixed issue #77
https://github.com/JonathanSalwan/ROPgadget/issues/77
Due to invalid IMAGE_OPTIONAL_HEADER64 definition, ROPGadget reports
wrong addresses for x64 PE files.
2016-10-26 18:45:07 +02:00
Jonathan Salwan a6afcc65d7 Merge branch 'master' of github.com:JonathanSalwan/ROPgadget 2016-09-16 11:56:00 +02:00
Jonathan Salwan d0165b49e9 Change LICENSE: From GPL to BSD 2016-09-16 11:55:46 +02:00
Jonathan Salwan bfb3ef84ce Merge pull request #96 from montyly/master
Inconsistencies of created gadgets, due to backward dissas
2016-07-25 20:35:16 +02:00
Josselin 5487c0638f Fix bug: inconsistencies of created gadgets, due to backward dissas 2016-07-25 16:07:16 +02:00
Jonathan Salwan c480d7d540 Fix weird git things. Related to #95 2016-06-26 14:48:00 +02:00
Jonathan Salwan 4a4230732c Merge pull request #95 from penguin-wwy/revert-94-master
Revert "input more one re"
2016-06-26 14:43:31 +02:00