Module: Rex::Parser
- Defined in:
- lib/rex/parser.rb,
lib/rex/parser/ini.rb,
lib/rex/parser/winscp.rb,
lib/rex/parser/dbeaver.rb,
lib/rex/parser/fs/ntfs.rb,
lib/rex/parser/graphml.rb,
lib/rex/parser/nmap_xml.rb,
lib/rex/parser/unattend.rb,
lib/rex/parser/arguments.rb,
lib/rex/parser/ip360_xml.rb,
lib/rex/parser/nessus_xml.rb,
lib/rex/parser/net_sarang.rb,
lib/rex/parser/retina_xml.rb,
lib/rex/parser/ci_document.rb,
lib/rex/parser/nexpose_xml.rb,
lib/rex/parser/fs/bitlocker.rb,
lib/rex/parser/mbsa_document.rb,
lib/rex/parser/nmap_document.rb,
lib/rex/parser/ip360_aspl_xml.rb,
lib/rex/parser/netsparker_xml.rb,
lib/rex/parser/wapiti_document.rb,
lib/rex/parser/appscan_document.rb,
lib/rex/parser/openvas_document.rb,
lib/rex/parser/acunetix_document.rb,
lib/rex/parser/fusionvm_document.rb,
lib/rex/parser/nokogiri_doc_mixin.rb,
lib/rex/parser/nokogiri_doc_mixin.rb,
lib/rex/parser/outpost24_document.rb,
lib/rex/parser/burp_issue_document.rb,
lib/rex/parser/foundstone_document.rb,
lib/rex/parser/nexpose_raw_document.rb,
lib/rex/parser/burp_session_document.rb,
lib/rex/parser/apple_backup_manifestdb.rb,
lib/rex/parser/nexpose_simple_document.rb,
lib/rex/parser/group_policy_preferences.rb
Defined Under Namespace
Modules: Dbeaver, GraphML, NetSarang, WinSCP Classes: AppleBackupManifestDB, Arguments, BITLOCKER, GPP, IP360ASPLXMLStreamParser, IP360XMLStreamParser, Ini, NTFS, NessusXMLStreamParser, NetSparkerXMLStreamParser, NexposeXMLStreamParser, NmapXMLStreamParser, ParsedResult, RetinaXMLStreamParser, Unattend
Class Method Summary collapse
-
.load_nokogiri ⇒ Object
Determines if Nokogiri is available and if it’s a minimum acceptable version.
- .nokogiri_loaded ⇒ Object
-
.reload(fname) ⇒ Object
Useful during development, shouldn’t be used in normal operation.
Class Method Details
.load_nokogiri ⇒ Object
Determines if Nokogiri is available and if it’s a minimum acceptable version.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rex/parser/nokogiri_doc_mixin.rb', line 7 def self.load_nokogiri @nokogiri_loaded = false begin require 'nokogiri' major,minor = Nokogiri::VERSION.split(".")[0,2] if major.to_i >= 1 if minor.to_i >= 4 @nokogiri_loaded = true end end rescue LoadError => e @nokogiri_loaded = false @nokogiri_error = e end @nokogiri_loaded end |
.nokogiri_loaded ⇒ Object
24 25 26 |
# File 'lib/rex/parser/nokogiri_doc_mixin.rb', line 24 def self.nokogiri_loaded !!@nokogiri_loaded end |
.reload(fname) ⇒ Object
Useful during development, shouldn’t be used in normal operation.
29 30 31 32 33 |
# File 'lib/rex/parser/nokogiri_doc_mixin.rb', line 29 def self.reload(fname) $stdout.puts "Reloading #{fname}..." load __FILE__ load File.join(File.(File.dirname(__FILE__)),fname) end |