Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nexpose_scan_manager

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nexpose_scan_manager

  • 0.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Usage:

The Scan Manager can be used to:

A. MONITOR A SCAN

Create a NeXpose API Connection

nexpose_connection = NeXpose::Connection.new host, username, password, port

Initialize the scan manager

Poll NeXpose every 5 seconds for the scan status

poll_time = 5 scan_manager = ScanManager.new nexpose_connection, false, poll__time

Add your observing class to the scan manager that defines an update method

scan_data contains the scan ID, status, and message if any

class ScanObserver def update scan_data, notifier end end

scan_observer = ScanObserver.new scan_manager.add_observer scan_observer

B. START A RESTRICTIVE SCAN

Define the condition

conditional_scan = { :site_id => , :max_scans => 5, # Only start scan if there are less than 5 scans running :devices => , # IPs :listeners => listeners # Can be null or an observer as defined in A }

scan_manager.add_conditional_device_scan conditional_scan This file was modified by JetBrains RubyMine 3.1.1 for binding GitHub repository This file was modified by JetBrains RubyMine 3.1.1 for binding GitHub repository

FAQs

Package last updated on 17 Jun 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc