-
Notifications
You must be signed in to change notification settings - Fork 101
Using Two Factor Authentication
Gavin Schneider edited this page Mar 1, 2016
·
2 revisions
Before attempting to use Two Factor Authentication, be sure to follow the guide on Rapid7's Community forum to successfully setup and enable the feature.
nsc = Connection.new('10.99.0.1', 'tfa_username', 'tfa_password', port, silo_id, 'tfa_access_code')
nsc.loginWhen logging in with a user that has two factor authentication enabled, you will need to pass in the port and the silo_id for the Nexpose console. The default port for Nexpose is 3780, and unless the silo_id is known the default should be nil.
With that information, our default Connectionwould look something like this:
nsc = Connection.new('10.99.0.1', 'tfa_username', 'tfa_password', 3780, nil, 'tfa_access_code')
nsc.loginKeep an eye on this page, as we will add more functionality around the two factor authentication feature in this gem.
Project Home 🔹 Release Notes 🔹 Wiki 🔹 Issues 🔹 Pull Requests