Home
Nexpose client script index
nexpose.yaml, stores script configurations so they may be shared amongst multiple scripts.
This configuration file is called from within nexpose-client scripts to populate common re-used variables.
assetGroupQuery.rb generates a csv export for an asset group when provided the asset group's ID.
Status: Active
Script performs the following tasks
- Read addresses from text file
- De-duplicate addresses
- Create new temporary site
- Add addresses to the created site
- Specify scan engine and template to use from nexpose.yaml
- Perform scan of the temporary site.
- Generate a report of vulnerabilities detected
- Delete temporary site.
Summary: assetGroupQuery.rb generates a csv export for an asset group when provided the asset group's ID.
Performs the following tasks independently of having a yaml configuration file available.
Script performs the following tasks
- Read addresses from text file
- De-duplicate addresses
- Create new asset group
- Add addresses to the created asset group
Script performs the following tasks
- Read addresses from text file
- De-duplicate addresses
- Create new asset group
- Add addresses to the created asset group
Script runs the following database maintenance tasks
- Clean up database - Removes any unnecessary data from the database
- Compress database tables - Compresses the database tables and reclaims unused, allocated space.
- Reindex database - Drops and recreates the database indexes for improved performance.
Script generates a Platform Independent application backup.
Lists all assets with a specified port detected as being open.
Performs the following tasks independently of having a yaml configuration file available.
Script performs the following tasks
- Initiates scans for assets located within a specified asset Group ID
Script performs the following tasks
Usage:
Script performs the following
- Parses all sites for SMTP alerts
- Finds SMTP alerts that contain a provided email address
- Replaces found email address with new email address
Lists all assets with a specified vulnerability ID being detected.
Script performs the following tasks 1.) Retrieve a list of paused scans from a console. 2.) Iteratively stop scans that have paused without completing. 3.) TODO: Massive code cleanup + efficiency improvements.
ruby stopPausedScans.rb
require 'yaml' require 'nexpose'
./conf/nexpose.yaml
Resume paused scans, the script logs into the configured Nexpose Console, checks for active scans and paused scans. The script will resume paused scans and track them in a queue. The default queue size is 5 (configurable in the nexpose.yaml file.) The script resumes paused scans and stores them in the queue. The queue is refreshed until there are no paused or running scans left. If the queue has empty slots the script will resume paused scans to fill the empty slots.
The script is intended to run through large batches of paused scans that may have been paused due to an overloaded console. This is why the queue runs in batches to ensure that the console is not over taxed.
Script performs the following tasks 1.) Retrieve a list of paused scans from a console. 2.) Retrieve a list of active scans from a console. 3.) Iteratively resume scans in batches for scans that have paused without completing. 4.) TODO: Massive code cleanup + efficiency improvements.
ruby scanCleanup.rb
require 'yaml' require 'nexpose'
./conf/nexpose.yaml
Script performs the following tasks 1.) Retrieve a list of available sites from a console. 2.) Retrieve address entries for each site. 3.) Convert address ranges to ip address counts 4.) Provide a total of addresses per site. 5.) Provide a total count of addresses for all sites combined.
ruby discoveryCount.rb
require 'yaml' require 'nexpose' require 'ipaddr'
./conf/nexpose.yaml