Class: ZAWS::Command::Nessus
- Inherits:
-
Thor
- Object
- Thor
- ZAWS::Command::Nessus
- Defined in:
- lib/zaws/command/nessus.rb
Instance Attribute Summary collapse
-
#nessus ⇒ Object
Returns the value of attribute nessus.
-
#out ⇒ Object
Returns the value of attribute out.
-
#print_exit_code ⇒ Object
Returns the value of attribute print_exit_code.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Nessus
constructor
A new instance of Nessus.
- #view_agents ⇒ Object
- #view_scanners ⇒ Object
Constructor Details
#initialize(*args) ⇒ Nessus
Returns a new instance of Nessus.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/zaws/command/nessus.rb', line 14 def initialize(*args) super shellout=ZAWS::Helper::Shell.new nessusapi = ZAWS::Nessusapi.new(shellout) @nessus = ZAWS::Controllers::Nessus.new(shellout, nessusapi) @out = $stdout @print_exit_code = false @params= { 'home' => [:home] } end |
Instance Attribute Details
#nessus ⇒ Object
Returns the value of attribute nessus.
10 11 12 |
# File 'lib/zaws/command/nessus.rb', line 10 def nessus @nessus end |
#out ⇒ Object
Returns the value of attribute out.
11 12 13 |
# File 'lib/zaws/command/nessus.rb', line 11 def out @out end |
#print_exit_code ⇒ Object
Returns the value of attribute print_exit_code.
12 13 14 |
# File 'lib/zaws/command/nessus.rb', line 12 def print_exit_code @print_exit_code end |
Instance Method Details
#view_agents ⇒ Object
33 34 35 36 |
# File 'lib/zaws/command/nessus.rb', line 33 def view_agents @params['scanner']=[:scanner] @out.puts(@nessus.agents.view(params)); end |
#view_scanners ⇒ Object
27 28 29 |
# File 'lib/zaws/command/nessus.rb', line 27 def view_scanners @out.puts(@nessus.scanners.view(@params)); end |