New Module: Portfilter#2135
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #2135 +/- ##
=====================================
- Coverage 93% 93% -0%
=====================================
Files 372 374 +2
Lines 28936 29001 +65
=====================================
+ Hits 26735 26774 +39
- Misses 2201 2227 +26 ☔ View full report in Codecov by Sentry. |
|
@TheTechromancer Thanks a lot 🙏 I guess this will fix the ignoring cdn ports in scan wide. For example on Naabu tool, it's possible to skip them with: |
Rgr, yeah this would probably make sense as a CLI flag. |
|
Have you thought about making this an internal module? |
|
I don't think it should be default behavior. At least until we have a more robust system for distinguishing between cloud and CDN. |
This PR adds a module
portfilterwhich filters out unwanted open ports from CDNs, etc. This moves the logic out ofportscanwhere it was previously, into its own dedicated module.By default, any open port with a
cdn-*tag that's not either 80 or 443 is filtered out. No special configuration is needed to enable the feature, only-m portfilter.@Sh4d0wHunt3rX are these sensible defaults?
EDIT: Also added the
--exclude-cdnCLI option.