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

Add custom headers (except for user agent) for generic detection #128

Merged
merged 2 commits into from
Apr 11, 2021

Conversation

jonasw234
Copy link
Contributor

@jonasw234 jonasw234 commented Mar 24, 2021

This is needed for HTTP Basic Authentication for example, which will get detected as a generic WAF otherwise.
Before this commit the “normal” requests were made with the Authorization header intact, whereas the generic request would remove the Authorization header and result in a 403 Forbidden.

Which category is this pull request?

  • A new feature/enhancement.
  • Fix an issue/feature-request.
  • An improvement to existing modules.
  • Other (Please mention below).

Where has this been tested?

  • Python Version
    • v3.x
    • v2.x
  • Operating System:
    • Kali Linux
    • Windows
    • MacOS

Does this close any currently open issues?

No, I just noticed it myself.

Does this add any new dependency?

No.

Does this add any new command line switch/argument?

No.

Any other comments you would like to make?

There is a quicker way to merge the dictionaries, but it is for Python 3.5 and above, so I hope this is okay.

This is needed for HTTP Basic Authentication for example, which will get
detected as a generic WAF otherwise.
wafw00f/main.py Outdated Show resolved Hide resolved
@0xInfection 0xInfection merged commit 4aeeaf9 into EnableSecurity:master Apr 11, 2021
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