Module: Msf::Exploit::SQLi

Defined in:
lib/msf/core/exploit/sqli.rb,
lib/msf/core/exploit/sqli/common.rb

Defined Under Namespace

Modules: MySQLi Classes: Common

Instance Method Summary collapse

Instance Method Details

#create_sqli(dbms:, opts: {}, &query_proc) ⇒ Object

Raises:

  • (ArgumentError)

21
22
23
24
25
# File 'lib/msf/core/exploit/sqli.rb', line 21

def create_sqli(dbms:, opts: {}, &query_proc)
  raise ArgumentError, 'Invalid dbms class' unless dbms.is_a?(Class) && dbms.ancestors.include?(Msf::Exploit::SQLi::Common)

  dbms.new(datastore, framework, user_output, opts, &query_proc)
end

#initialize(info = {}) ⇒ Object


12
13
14
15
16
17
18
19
# File 'lib/msf/core/exploit/sqli.rb', line 12

def initialize(info = {})
  super
  register_advanced_options(
    [
      OptFloat.new('SqliDelay', [ false, 'The delay to sleep on time-based blind SQL injections', 1.0 ])
    ]
  )
end