nessus-xmlrpc

Ruby library for Nessus
Download

nessus-xmlrpc Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Vlatko Kosturjak
  • Publisher web site:
  • http://cvs.linux.hr/fakebo/

nessus-xmlrpc Tags


nessus-xmlrpc Description

Ruby library for Nessus nessus-xmlrpc is a Ruby library for Nessus XMLRPC interface and Nessus command-line example.Requirements:Requirements are quite standard Ruby libraries for HTTPS and XMLparsing:require 'uri'require 'net/https'require 'rexml/document'nessus-cli.rbNessus command line interface for XML-RPC.Type ./nessus-cli.rb --help for command line options.Examples:./nessus-cli.rb --user john --password doe --scan scan-localhost --wait --output report.xml --target localhost./nessus-cli.rb --user user --password pass --scan localhost-scan --wait 5 -D --output report-localhost.xml --target localhost --verbose ./nessus-cli.rb --user user --password pass --scan localhost-scan --wait 5 -D --output report-localhost.xml --target 127.0.0.1 --verbose --policy mypolicy --url https://localhost:8834Or if you want to have detached scans:./nessus-cli.rb --user user --password pass --scan localhost-scan --target 127.0.0.1 --policy mypolicy./nessus-cli.rb --user user --password pass --list-scans ./nessus-cli.rb --user user --password pass --pause 5329fae9-fb1d-0c67-a401-a0db12637c0d5bcd67900d34e00e./nessus-cli.rb --user user --password pass --resume 5329fae9-fb1d-0c67-a401-a0db12637c0d5bcd67900d34e00e./nessus-cli.rb --user user --password pass --stop 5329fae9-fb1d-0c67-a401-a0db12637c0d5bcd67900d34e00e./nessus-cli.rb --user user --password pass --stop-all./nessus-cli.rb --user user --password pass --report 5329fae9-fb1d-0c67-a401-a0db12637c0d5bcd67900d34e00e --output report.xmlnessus-xmlrpc.rbcommunicate with Nessus(4.2+) over XML RPC interfaceSimple example:require 'nessus-xmlrpc'n=NessusXMLRPC::NessusXMLRPC.new('https://localhost:8834','user','pass');# n=NessusXMLRPC::NessusXMLRPC.new('','user','pass'); # it's sameif n.logged_in id,name = n.get_policy_first puts "using policy ID: " + id + " with name: " + name uid=n.scan_new(id,"textxmlrpc","127.0.0.1") puts "status: " + n.scan_status(uid) while not n.scan_finished(uid) sleep 10 end content=n.file_report_download(uid) File.open('report.xml', 'w') {|f| f.write(content) }endTake a look at nessus-cli.rb for more advanced examples. Requirements: · Ruby


nessus-xmlrpc Related Software