Class: XspearScan::ScanCallbackFunc

Inherits:
Object
  • Object
show all
Defined in:
lib/XSpear.rb

Instance Method Summary collapse

Constructor Details

#initialize(url, method, query, response, report) ⇒ ScanCallbackFunc

Returns a new instance of ScanCallbackFunc.



53
54
55
56
57
58
59
60
# File 'lib/XSpear.rb', line 53

def initialize(url, method, query, response, report)
  @url = url
  @method = method
  @query = query
  @response = response
  @report = report
  # self.run
end

Instance Method Details

#runObject



62
63
64
65
66
67
68
69
70
71
# File 'lib/XSpear.rb', line 62

def run
  # Override callback function..

  # return type: Array(state, message)
  # + state: i(INFO), v(VULN), s(SYSTEM)
  # + message: your message

  # e.g
  # return "v", "reflected xss with #{query}"
end