-
Notifications
You must be signed in to change notification settings - Fork 103
Getting started on Windows
gschneider edited this page Mar 12, 2015
·
7 revisions
NOTE: Ruby requirements will change with nexpose-client version 1.0.0
- Visit http://rubyinstaller.org/downloads/
- Download an appropriate installer
- The Nexpose gem requires at least Ruby 1.9.3
- The Nexpose gem is known to work on Ruby 2.0.0
- 64-bit is required for scripts that use large data sets
- Install Ruby with the downloaded installer
- Be sure to check the box to add Ruby to the path. This will make it easier to execute Ruby scripts.
- Open a command prompt or PowerShell prompt
- Enter the following command:
gem install nexpose --no-ri --no-rdoc
- The no-ri and no-rdoc options reduce download size for the Rex dependencies
- Check the Nexpose gem version installed:
gem list | findstr nexpose
- In your command prompt or PowerShell prompt, run
irb
to launch the Ruby interpreter - Enter the following lines to load the Nexpose gem and setup a connection to a Nexpose Security Console
require 'nexpose'
nsc = Nexpose::Connection.new('localhost', 'nxadmin', 'nxpassword')
Note: Be sure to set the correct hostname or IP address, username, and password for your Nexpose Security Console.
Enter the following lines to log in to Nexpose and list all sites
nsc.login
nsc.list_sites
When you're finished interacting with a Nexpose session, you should log out to ensure the session is freed up
nsc.logout
exit
Project Home 🔹 Release Notes 🔹 Wiki 🔹 Issues 🔹 Pull Requests