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

Exclude waf #749

Merged
merged 8 commits into from
Aug 17, 2023
Merged

Exclude waf #749

merged 8 commits into from
Aug 17, 2023

Conversation

JoshuaMart
Copy link
Contributor

This PR is associated to #745.
As it stands, Naabu does not exclude WAF scanning, which can return false positives as explained in the issue.

Rather than adding a new flag such as --exclude-waf, I've modified the current CDN verification function. Adding a new flag seems a bit counter-intuitive to me, as I can't see in which case you'd want to exclude CDN scanning but not WAF, or vice versa.

Perhaps the function names / some comments are no longer explicit enough with the proposed modification.
Let me know what you think

@ehsandeep ehsandeep linked an issue Aug 2, 2023 that may be closed by this pull request
Copy link
Member

@tarunKoyalwar tarunKoyalwar left a comment

Choose a reason for hiding this comment

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

lgtm !

$ cdncheck -i 45.60.124.29

            __           __              __  
  _________/ /___  _____/ /_  ___  _____/ /__
 / ___/ __  / __ \/ ___/ __ \/ _ \/ ___/ //_/
/ /__/ /_/ / / / / /__/ / / /  __/ /__/ ,<   
\___/\__,_/_/ /_/\___/_/ /_/\___/\___/_/|_|

		projectdiscovery.io

[INF] Current cdncheck version v1.0.9 (latest)
45.60.124.29
[INF] Found result: 1 (WAF: 1)

Before

$  sudo naabu -host 45.60.124.29 -ec
Password:

                  __
  ___  ___  ___ _/ /  __ __
 / _ \/ _ \/ _ \/ _ \/ // /
/_//_/\_,_/\_,_/_.__/\_,_/

		projectdiscovery.io

[INF] Current naabu version 2.1.6 (latest)
[INF] Running host discovery scan
[INF] Running SYN scan with root privileges
[INF] Found 50 ports on host 45.60.124.29 (45.60.124.29)
45.60.124.29:2000
45.60.124.29:10000
45.60.124.29:6000
45.60.124.29:554
45.60.124.29:631
45.60.124.29:8000
45.60.124.29:21
45.60.124.29:7070
45.60.124.29:5900
45.60.124.29:1720
...

Now

$ sudo ./naabu -host 45.60.124.29 -ec

                  __
  ___  ___  ___ _/ /  __ __
 / _ \/ _ \/ _ \/ _ \/ // /
/_//_/\_,_/\_,_/_.__/\_,_/

		projectdiscovery.io

[INF] Current naabu version 2.1.6 (latest)
[INF] Running host discovery scan
[INF] Running SYN scan with root privileges
[INF] Found 2 ports on host 45.60.124.29 (45.60.124.29)
45.60.124.29:80
45.60.124.29:443

thanks for the PR @JoshuaMart and sorry for the delay in reviewing PR

@ehsandeep ehsandeep merged commit ac2a08d into projectdiscovery:dev Aug 17, 2023
5 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.

WAF not excluded with -ec
3 participants