Skip to content

nxcdb CSV header mismatch #1385

Description

@lebruch

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
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions