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

feat: add address exclusion flag (#718) #719

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

thannaske
Copy link
Contributor

As described in #718, this PR adds an option to exclude single addresses, hosts or CIDRs from the list of addresses to allow for a more granular selection of target addresses to be scanned.

The new optional argument can be used with -x or --exclude-addresses. The implementation was done by filtering the final list of parsed addresses against the list of exclusions (after they have been parsed and optionally resolved as well). I've added three tests to make sure it works as intended as well.

Copy link
Collaborator

@PsypherPunk PsypherPunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it—verified locally and LGTM! 🚀

@PsypherPunk PsypherPunk merged commit 3b06a34 into bee-san:master Jan 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants