Class: XspearScan::CallbackNotAdded

Inherits:
ScanCallbackFunc show all
Defined in:
lib/XSpear.rb

Instance Method Summary collapse

Methods inherited from ScanCallbackFunc

#initialize

Constructor Details

This class inherits a constructor from XspearScan::ScanCallbackFunc

Instance Method Details

#runObject



85
86
87
88
89
90
91
92
93
94
95
# File 'lib/XSpear.rb', line 85

def run
  if @response.body.include? @query
    if (@verbose.to_i > 1)
      time = Time.now
      puts '[I]'.blue + " [#{time.strftime('%H:%M:%S')}] [#{@response.code}/#{@response.message}] reflected #{@query}"
    end
    [false, true]
  else
    [false, "Not reflected #{@query}"]
  end
end