+
Skip to content

Allow customized subnet list for nmap #53

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

alexxxxxxxandria
Copy link

The core purpose for this change is to allow Bjorn to function in large networks; 10.0.0.0/8 subnets have millions of available addresses. This is a known limitation of nmap; nothing is well-suited to poll this many hosts.

This commit adds two new config items, boolean 'use_custom_subnets' and string[] 'custom_subnet_list'. By default, 'use_custom_subnets' is False which matches the current behavior of using the IP Interface subnet. If 'use_custom_subnets' is True, then the subnets in 'custom_subnet_list' are passed to nmap instead.

The core purpose for this change is to allow Bjorn to function in large
networks; 10.0.0.0/8 subnets have millions of available addresses. This
is a known limitation of nmap; nothing is well-suited to poll this many
hosts.

This commit adds two new config items, boolean 'use_custom_subnets' and
string[] 'custom_subnet_list'. By default, 'use_custom_subnets' is False
which matches the current behavior of using the IP Interface subnet. If
'use_custom_subnets' is True, then the subnets in 'custom_subnet_list'
are passed to nmap instead.
@JuanVilla424
Copy link
Contributor

JuanVilla424 commented Nov 21, 2024

Disclaimer

#48?

@JuanVilla424
Copy link
Contributor

Please switch target branch to dev.

@mero20j1
Copy link

mero20j1 commented Dec 1, 2024

Yes please switch target branch to dev.

@alexxxxxxxandria alexxxxxxxandria changed the base branch from main to dev December 2, 2024 03:48
@alexxxxxxxandria
Copy link
Author

Branch changed

@7h30th3r0n3
Copy link

@alexxxxxxxandria
Hey thanks for the work !

I tested it on my side because the need of scanning another part of my network that the one i'm connected to,
I replaced the 4 files on the Bjorn directory, set the use_custom_subnets flag to True and reboot,
But it seem that Bjorn still running the same subnet and not the custom one,
Anything that I missed ?

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.

4 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载