Class: Arachni::Checks::XssTag::SAX

Inherits:
Object
  • Object
show all
Defined in:
components/checks/active/xss_tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(seed) ⇒ SAX

Returns a new instance of SAX.


24
25
26
# File 'components/checks/active/xss_tag.rb', line 24

def initialize( seed )
    @seed = seed
end

Instance Attribute Details

#landedObject (readonly)

Returns the value of attribute landed


22
23
24
# File 'components/checks/active/xss_tag.rb', line 22

def landed
  @landed
end

Instance Method Details

#attr(name, value) ⇒ Object


35
36
37
38
39
40
41
42
43
# File 'components/checks/active/xss_tag.rb', line 35

def attr( name, value )
    name  = name.to_s.downcase
    value = value.downcase

    return if ATTRIBUTE_NAME != name || value != @seed

    @landed = true
    fail Arachni::Parser::SAX::Stop
end

#documentObject


28
29
# File 'components/checks/active/xss_tag.rb', line 28

def document
end

#landed?Boolean

Returns:

  • (Boolean)

31
32
33
# File 'components/checks/active/xss_tag.rb', line 31

def landed?
    !!@landed
end