#!/usr/bin/env ruby # -*- coding: binary -*- # # $Id$ # # This tool will collect, export, and import ROP gadgets # from various file formats (PE, ELF, Macho) # $Revision$ # require 'rex/rop_builder' require 'rex/text/color' require 'optparse' def opt2i(o) o.index("0x")==0 ? o.hex : o.to_i end opts = {} color = true opt = OptionParser.new opt.banner = "Usage #{$PROGRAM_NAME}