Skip to content

Allow customized subnet list for nmap#53

Open
alexxxxxxxxxxandria wants to merge 1 commit intoinfinition:devfrom
alexxxxxxxxxxandria:main
Open

Allow customized subnet list for nmap#53
alexxxxxxxxxxandria wants to merge 1 commit intoinfinition:devfrom
alexxxxxxxxxxandria:main

Conversation

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

@alexxxxxxxxxxandria alexxxxxxxxxxandria changed the base branch from main to dev December 2, 2024 03:48
@alexxxxxxxxxxandria
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

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants