class OneGadget::Fetcher::X86
Define common methods for gadget fetchers.
Private Instance Methods
branch?(str)
click to toggle source
If str contains a branch instruction.
# File lib/one_gadget/fetchers/x86.rb, line 12 def branch?(str) %w[jmp je jne jl jb ja jg].any? { |f| str.include?(f) } end
call_str()
click to toggle source
# File lib/one_gadget/fetchers/x86.rb, line 20 def call_str 'call' end
objdump_options()
click to toggle source
# File lib/one_gadget/fetchers/x86.rb, line 16 def objdump_options %w[-M intel] end