Skip to content

Commit

Permalink
Overhaul ROP.setRegisters to support more complex cases needed by AMD…
Browse files Browse the repository at this point in the history
…64 (#1044)

* Overhaul ROP.setRegisters to support more complex cases needed by AMD64

Additionally, have a separate cache for ROPs composed of multiple ELF files

* Better presentation for stack padding slots

* Remove unnecessary stack adjustment on amd64

For amd64, it is possible that len(stackArguments) == 0.

* Add a doctest for amd64 register dependency stuff

* More i386 adjust optimizations

* Use nextGadgetAddr as the adjust value

* Always use padding for the last "ret" adjustment

* Better dump display

* Update doctests for new ROP dump() enhancements

* Add badchars support for ROP gadgets

* More doctest fixes, also ensure ROP.search does not return gadgets ending in e.g. int 0x80
  • Loading branch information
zachriggle authored Oct 11, 2017
1 parent 7ad5a4e commit 1577263
Showing 1 changed file with 226 additions and 68 deletions.
Loading

0 comments on commit 1577263

Please sign in to comment.