You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a Scanner class which takes a .text section object or IO stream and uses ronin-asm's disassembler(s) to disassemble each instruction, then looks for instructions prior to each ret instruction (or equivalent instruction for the architecture of the .text section/executable file). It should yield each discovered Gadget object (see #7).
executable_file=ExecutableFile.new('/bin/ls')scanner=Scanner.new(executable_file, ...)# additional configuration options may be givenscanner.eachdo |gadget|
puts"Found gadget at offset #{gadget.offset}"putsputsgadget.instructionsend
The text was updated successfully, but these errors were encountered:
Add a
Scanner
class which takes a.text
section object or IO stream and uses ronin-asm's disassembler(s) to disassemble each instruction, then looks for instructions prior to eachret
instruction (or equivalent instruction for the architecture of the.text
section/executable file). It should yield each discoveredGadget
object (see #7).The text was updated successfully, but these errors were encountered: