Module: Msf::Exploit::RopDb

Included in:
Msf::Exploit::Remote::BrowserExploitServer
Defined in:
lib/msf/core/exploit/ropdb.rb

Instance Method Summary collapse

Instance Method Details

#generate_rop_payload(rop, payload, opts = {}) ⇒ Object


28
29
30
31
32
# File 'lib/msf/core/exploit/ropdb.rb', line 28

def generate_rop_payload(rop, payload, opts={})
  opts['badchars'] ||= payload_badchars
  rop_payload = @rop_db.generate_rop_payload(rop, payload, opts)
  return rop_payload
end

#has_rop?(rop) ⇒ Boolean


19
20
21
# File 'lib/msf/core/exploit/ropdb.rb', line 19

def has_rop?(rop)
  @rop_db.has_rop?(rop)
end

#initialize(info = {}) ⇒ Object


14
15
16
17
# File 'lib/msf/core/exploit/ropdb.rb', line 14

def initialize(info = {})
  @rop_db = Rex::Exploitation::RopDb.new
  super
end

#rop_junkObject


34
35
36
# File 'lib/msf/core/exploit/ropdb.rb', line 34

def rop_junk
  rand_text_alpha(4).unpack("V")[0].to_i
end

#rop_nopObject


38
39
40
# File 'lib/msf/core/exploit/ropdb.rb', line 38

def rop_nop
  make_nops(4).unpack("V")[0].to_i
end

#select_rop(rop, opts = {}) ⇒ Object


23
24
25
26
# File 'lib/msf/core/exploit/ropdb.rb', line 23

def select_rop(rop, opts={})
  rop = @rop_db.select_rop(rop, opts)
  return rop
end