Module: Msf::Exploit::RopDb
- Included in:
- Msf::Exploit::Remote::BrowserExploitServer
- Defined in:
- lib/msf/core/exploit/rop_db.rb
Instance Method Summary collapse
- #generate_rop_payload(rop, payload, opts = {}) ⇒ Object
- #has_rop?(rop) ⇒ Boolean
- #initialize(info = {}) ⇒ Object
- #rop_junk ⇒ Object
- #rop_nop ⇒ Object
- #select_rop(rop, opts = {}) ⇒ Object
Instance Method Details
#generate_rop_payload(rop, payload, opts = {}) ⇒ Object
28 29 30 31 32 |
# File 'lib/msf/core/exploit/rop_db.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/rop_db.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/rop_db.rb', line 14 def initialize(info = {}) @rop_db = Rex::Exploitation::RopDb.new super end |
#rop_junk ⇒ Object
34 35 36 |
# File 'lib/msf/core/exploit/rop_db.rb', line 34 def rop_junk rand_text_alpha(4).unpack("V")[0].to_i end |
#rop_nop ⇒ Object
38 39 40 |
# File 'lib/msf/core/exploit/rop_db.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/rop_db.rb', line 23 def select_rop(rop, opts={}) rop = @rop_db.select_rop(rop, opts) return rop end |