Class: Rack::LibInjection::Attack

Inherits:
Data
  • Object
show all
Defined in:
lib/rack/libinjection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bytesObject (readonly)

Returns the value of attribute bytes

Returns:

  • (Object)

    the current value of bytes



62
63
64
# File 'lib/rack/libinjection.rb', line 62

def bytes
  @bytes
end

#fingerprintObject (readonly)

Returns the value of attribute fingerprint

Returns:

  • (Object)

    the current value of fingerprint



62
63
64
# File 'lib/rack/libinjection.rb', line 62

def fingerprint
  @fingerprint
end

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



62
63
64
# File 'lib/rack/libinjection.rb', line 62

def key
  @key
end

#key_nameObject (readonly)

Returns the value of attribute key_name

Returns:

  • (Object)

    the current value of key_name



62
63
64
# File 'lib/rack/libinjection.rb', line 62

def key_name
  @key_name
end

#locationObject (readonly)

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



62
63
64
# File 'lib/rack/libinjection.rb', line 62

def location
  @location
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



62
63
64
# File 'lib/rack/libinjection.rb', line 62

def type
  @type
end

Instance Method Details

#detected_in_key_name?Boolean

Returns:

  • (Boolean)


65
# File 'lib/rack/libinjection.rb', line 65

def detected_in_key_name? = !!key_name

#sqli?Boolean

Returns:

  • (Boolean)


63
# File 'lib/rack/libinjection.rb', line 63

def sqli? = type == :sqli

#xss?Boolean

Returns:

  • (Boolean)


64
# File 'lib/rack/libinjection.rb', line 64

def xss?  = type == :xss