Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore Timeline Output #25

Open
leesoh opened this issue May 17, 2022 · 2 comments
Open

Explore Timeline Output #25

leesoh opened this issue May 17, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@leesoh
Copy link
Owner

leesoh commented May 17, 2022

It would be neat to show the changes over time rather than the end state. For example, if you run one scan per day, np would start at the oldest and process scan 1:

$ np
2022-01-01 12:10 AM 10.1.23.5 80/tcp open
2022-01-01 12:10 AM 10.1.23.5 22/tcp open

Then a subsequent scan against the host after SNMP has been enabled:

2022-01-02 12:10 AM 10.1.23.5 161/udp open

And later HTTP is disabled:

2022-01-03 12:10 AM 10.1.23.5 80/tcp closed

This would allow us to review only the changes for each new scan processed.

@leesoh leesoh added the enhancement New feature or request label May 17, 2022
@leesoh
Copy link
Owner Author

leesoh commented May 17, 2022

This should also call out new hosts:

2022-01-04 12:10 AM 10.1.23.6 added
2022-01-04 12:10 AM 10.1.23.6 443/tcp open

@leesoh
Copy link
Owner Author

leesoh commented May 24, 2022

This gets a bit thorny based on where we can detect a change (when parsing the scan) and when we surface that to the user (result printing). I wonder if it would be sufficient to do a diff <(np -path scans -exclude newfile.xml) <(np -path newfile.xml)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant