Describe the bug
When exporting hosts DB for any protocols other than RDP, the CSV header does not match the content of the table.
It's due of the use of the same headers in the file nxc/nxcdb.py for all protocols, whereas it is specific to SMB.
To Reproduce
Steps to reproduce the behavior i.e.:
Command:
nxcdb
> proto rdp
> export hosts detailed rdp.export
Resulted in:
id;ip;hostname;domain;os;dc;smbv1;signing;spooler;zerologon;petitpotam
1;10.11.200.3;3389;PC-654654;domain.local;Windows 10 or Windows Server 2016 Build 19041;True
2;10.11.200.9;3389;PC-368756;domain.local;Windows 10 or Windows Server 2016 Build 19041;True
...
Expected behavior
id;ip;hostname;domain;os;nla
1;10.11.200.3;3389;PC-654654;domain.local;Windows 10 or Windows Server 2016 Build 19041;True
2;10.11.200.9;3389;PC-368756;domain.local;Windows 10 or Windows Server 2016 Build 19041;True
...
Describe the bug
When exporting hosts DB for any protocols other than RDP, the CSV header does not match the content of the table.
It's due of the use of the same headers in the file nxc/nxcdb.py for all protocols, whereas it is specific to SMB.
To Reproduce
Steps to reproduce the behavior i.e.:
Command:
Resulted in:
Expected behavior