Closed mazlum closed 3 years ago
WAFW00F was never intended to be made available as a library, but rather as a CLI tool. Anyways, I've been seeing a lot of people using the code as a library, and it doesn't affect normal behaviour of the tool, so it doesn't hurt to merge this in.
@sandrogauci what are your thoughts? :)
agreed @0xInfection. Also, good to avoid global vars.
I'd written:
i did notice that some behaviors are changed so that might require some tests/checks. e.g.
rq = attacker.normalRequest()
is removed in line 422main.py
.
but noticed that stuff is handled in the WAFW00F class. So it looks fine. (still i didn't actually test yet)
Did some testing, looks fine to me. We can always revert if something breaks. :)
Thanks @mazlum!
Which category is this pull request?
Where has this been tested?
I think global rq is not a good practice. And it blocks to use WAFW00F as a library. This way we can use as a library.
For example;