class Wafalyzer::Waf::ASPNet

Defined in:

wafalyzer/wafs/aspnet.cr

Constant Summary

PATTERN = Regex.union(/this.generic.403.error.means.that.the.authenticated/i, /request.could.not.be.understood/i, /<.+>a.potentially.dangerous.request(?:.querystring)?.+/i, /runtime.error/i, /.>a.potentially.dangerous.request.path.value.was.detected.from.the.client+/i, /asp.net.sessionid/i, /errordocument.to.handle.the.request/i, /an.application.error.occurred.on.the.server/i, /error.log.record.number/i, /error.page.might.contain.sensitive.information/i, /<.+>server.error.in.'\/'.application.+/i, /\basp.net\b/i)

Class Method Summary

Instance Method Summary

Instance methods inherited from class Wafalyzer::Waf

clone clone, product : String product, to_json(json : JSON::Builder) to_json, to_s(io : IO) : Nil to_s

Constructor methods inherited from class Wafalyzer::Waf

find(klass : Waf.class) : Waf find, new(product : String)
new
new

Class methods inherited from class Wafalyzer::Waf

detect(response : HTTP::Client::Response) : Array(Waf) detect, find?(klass : Waf.class) : Waf | Nil find?, instances instances, instances=(instances : Hash(::Wafalyzer::Waf.class, Wafalyzer::Waf)) instances=

Constructor methods inherited from module Wafalyzer::Waf::DSL

new new

Instance methods inherited from module Wafalyzer::Waf::Matcher

matches?(response : HTTP::Client::Response) : Bool matches?

Class Method Detail

def self.instance : Waf #

[View source]
def self.instance? : Waf | Nil #

[View source]

Instance Method Detail

def matches?(response : HTTP::Client::Response) : Bool #
Description copied from module Wafalyzer::Waf::Matcher

Returns true if given response matches defined assertions, false otherwise.


[View source]