Database General Usage
Database General Usage
nxc automatically stores all used/dumped credentials (along with other information) in its database which is setup on first run.
Each protocol has its own database which makes things much more sane and allows for some awesome possibilities. Additionally, there are workspaces (like Metasploit), to separate different engagements/pentests.
For details and usage of a specific protocol's database see the appropriate wiki section.
All workspaces and their relative databases are stored in ~/.nxc/workspaces
Interacting with the Database
nxc ships with a secondary command line script nxcdb
which abstracts interacting with the back-end database. Typing the command nxcdb
will drop you into a command shell:
Listing Help
At anytime, just type "help" for a list of commands:
Workspaces
The default workspace name is called 'default' (as represented within the prompt), once a workspace is selected everything that you do in nxc will be stored in that workspace.
To create a workspace:
To switch workspace:
To list workspaces:
Accessing a Protocol's Database
To access a protocol's database simply run proto <protocol>
, for example:
As you can see by the prompt, we are now in the workspace called 'test' and using the SMB protocol's database. Every protocol database has its own set of commands, you can run help
to view available commands.
Please refer to the appropriate wiki section for details and usage of a specific protocol's database.
To switch protocol database:
🆕 Exporting From the Database
You can export information from the database in a few different ways
For all of the up to date options, type help export
Last updated