Class: Nifflsploit::Result
- Inherits:
-
Object
- Object
- Nifflsploit::Result
- Defined in:
- lib/nifflsploit/result.rb
Instance Attribute Summary collapse
-
#authors ⇒ Object
Returns the value of attribute authors.
-
#development ⇒ Object
Returns the value of attribute development.
-
#module_options ⇒ Object
Returns the value of attribute module_options.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#references ⇒ Object
Returns the value of attribute references.
-
#similar_modules ⇒ Object
Returns the value of attribute similar_modules.
-
#targets ⇒ Object
Returns the value of attribute targets.
Class Method Summary collapse
Instance Attribute Details
#authors ⇒ Object
Returns the value of attribute authors.
5 6 7 |
# File 'lib/nifflsploit/result.rb', line 5 def end |
#development ⇒ Object
Returns the value of attribute development.
5 6 7 |
# File 'lib/nifflsploit/result.rb', line 5 def development @development end |
#module_options ⇒ Object
Returns the value of attribute module_options.
5 6 7 |
# File 'lib/nifflsploit/result.rb', line 5 def end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/nifflsploit/result.rb', line 5 def name @name end |
#rank ⇒ Object
Returns the value of attribute rank.
5 6 7 |
# File 'lib/nifflsploit/result.rb', line 5 def rank @rank end |
#references ⇒ Object
Returns the value of attribute references.
5 6 7 |
# File 'lib/nifflsploit/result.rb', line 5 def references @references end |
#similar_modules ⇒ Object
Returns the value of attribute similar_modules.
5 6 7 |
# File 'lib/nifflsploit/result.rb', line 5 def similar_modules @similar_modules end |
#targets ⇒ Object
Returns the value of attribute targets.
5 6 7 |
# File 'lib/nifflsploit/result.rb', line 5 def targets @targets end |
Class Method Details
.parse(document) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nifflsploit/result.rb', line 7 def self.parse(document) @document = document @result = Nifflsploit::Result.new @result.name = @document.xpath("/html/body/div/div/section/h1").text h2s = @document.xpath("/html/body/div/div/section/div/h2") count = 1 for h2 in h2s ul = @document.xpath("/html/body/div/div/section/div/ul[#{count}]") self.parse_by_h2(h2, ul) count += 1 end # for h2 return @result end |