Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    nessus-xmlrpc 0.20

    Download button

    No screenshots available
    Downloads: 402  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Vlatko Kosturjak | More programs
    GPL / FREE
    April 7th, 2010, 09:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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 XML
    parsing:
    require 'uri'
    require 'net/https'
    require 'rexml/document'

    nessus-cli.rb

    Nessus 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:8834


    Or 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.xml


    nessus-xmlrpc.rb

    communicate with Nessus(4.2+) over XML RPC interface

    Simple example:

    require 'nessus-xmlrpc'
    n=NessusXMLRPC::NessusXMLRPC.new('https://localhost:8834','user','pass');
    # n=NessusXMLRPC::NessusXMLRPC.new('','user','pass'); # it's same
    if 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) }
    end


    Take a look at nessus-cli.rb for more advanced examples.


    Product's homepage

    Requirements:

    · Ruby

      


    TAGS:

    Ruby library | Nessus XMLRPC | Nessus | Ruby | library

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM