Class: LibInjection::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detectedObject (readonly)

Returns the value of attribute detected

Returns:

  • (Object)

    the current value of detected



17
18
19
# File 'lib/libinjection.rb', line 17

def detected
  @detected
end

#fingerprintObject (readonly)

Returns the value of attribute fingerprint

Returns:

  • (Object)

    the current value of fingerprint



17
18
19
# File 'lib/libinjection.rb', line 17

def fingerprint
  @fingerprint
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



17
18
19
# File 'lib/libinjection.rb', line 17

def type
  @type
end

Instance Method Details

#detected?Boolean

Returns:

  • (Boolean)


18
# File 'lib/libinjection.rb', line 18

def detected? = !!detected

#sqli?Boolean

Returns:

  • (Boolean)


19
# File 'lib/libinjection.rb', line 19

def sqli?     = type == :sqli && detected?

#xss?Boolean

Returns:

  • (Boolean)


20
# File 'lib/libinjection.rb', line 20

def xss?      = type == :xss  && detected?