Class: XspearScan::ScanCallbackFunc
- Inherits:
-
Object
- Object
- XspearScan::ScanCallbackFunc
- Defined in:
- lib/XSpear.rb
Direct Known Subclasses
CallbackCheckHeaders, CallbackCheckWAF, CallbackErrorPatternMatch, CallbackNotAdded, CallbackStringMatch, CallbackXSSSelenium
Instance Method Summary collapse
-
#initialize(url, method, query, response, report) ⇒ ScanCallbackFunc
constructor
A new instance of ScanCallbackFunc.
- #run ⇒ Object
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
#run ⇒ Object
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 |