Description
Running export keys all <filename> or export keys <id> <filename> inside nxcdb
crashes with an AttributeError.
Steps to Reproduce
- Run
nxcdb
- Select a workspace and
proto smb
- Run
export keys all key3.bin
Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nxc/nxcdb.py", line 314, in do_export
keys = self.db.get_keys() if line[1].lower() == "all" else self.db.get_keys(key_id=int(line[1]))
^^^^^^^^^^^^^^^^
AttributeError: 'database' object has no attribute 'get_keys'. Did you mean: 'get_users'?
Root Cause
do_export in nxcdb.py calls self.db.get_keys() but this method does not exist
on the database object. The help export output advertises keys as a valid table
but it cannot actually be exported.
Environment
- nxc version: 1.5.1 - Yippie-Ki-Yay
- Python: 3.13.9
- OS: Kali
Description
Running
export keys all <filename>orexport keys <id> <filename>inside nxcdbcrashes with an AttributeError.
Steps to Reproduce
nxcdbproto smbexport keys all key3.binError
Root Cause
do_exportinnxcdb.pycallsself.db.get_keys()but this method does not existon the
databaseobject. Thehelp exportoutput advertiseskeysas a valid tablebut it cannot actually be exported.
Environment