Nytro Posted December 1, 2014 Report Posted December 1, 2014 [h=1]roputils[/h]A Return-oriented Programming toolkit [h=2]Usage[/h] examples/ropasaurusrex.py is a write-up of ropasaurusrex in PlaidCTF 2013. [h=2]Overview[/h] Currently roputils.py has 7 classes: ELF, ROP, ROPBlob, Shellcode, FormatStr, Proc, Pattern.ELF: information about ELF object retrieved by readelfROP: subclass of ELF, with additional methods for creating ROP sequenceROPBlob: subclass of ROP, for creating ROP sequence from leaked memoryShellcode: x86 and x64 shellcode builderFormatStr: create format string for exploitationProc: gateway interface of subprocess and socketPattern: create Metasploit pattern and calculate its offset roputils.py also can be used as CLI tool, has 7 subcommands: checksec, create, offset, gadget, scan, asm, objdump.checksec: a clone of checksec.shcreate: call Pattern.create()offset: call Pattern.offset()gadget: availability check for tiny gadgetsscan: search the binary chunk and disassemble from thereasm: x86 and x64 assembler/disassemblerobjdump: disassemble with IDA-like annotations For more details, just read the codes.Sursa: https://github.com/inaz2/roputils Quote