Class: Xezat::Detector::Waf

Inherits:
Object
  • Object
show all
Defined in:
lib/xezat/detector/waf.rb

Instance Method Summary collapse

Instance Method Details

#detect(variables) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/xezat/detector/waf.rb', line 6

def detect(variables)
  if variables.key?(:_waf_CYGCLASS_)
    Find.find(variables[:S]) do |file|
      return false if file.end_with?("#{File::SEPARATOR}waf")
    end
    return true
  end
  false
end