Comments (4)
Hey @wangoloj,
Thanks for pulling this issue up. It would be nice if you can help us debug the problem by copy-pasting the command you used as well as the full stack trace error. :)
from wafw00f.
from wafw00f import main
host = "https://www.nmmapper.com"
detector = main.WAFW00F(host)
detector.identwaf()
NameError Traceback (most recent call last)
<ipython-input-11-9da7d8f04e88> in <module>
----> 1 D.identwaf()
~/Templates/virtualenv/www.dnsdumpster.net/lib/python3.7/site-packages/wafw00f/main.py in identwaf(self, findall)
232 for wafvendor in self.checklist:
233 self.log.info('Checking for %s' % wafvendor)
--> 234 if self.wafdetections[wafvendor](self):
235 detected.append(wafvendor)
236 if not findall:
~/Templates/virtualenv/www.dnsdumpster.net/lib/python3.7/site-packages/wafw00f/plugins/ciscoacexml.py in is_waf(self)
10 def is_waf(self):
11 schemes = [
---> 12 self.matchHeader(('Server', 'ACE XML Gateway'))
13 ]
14 if any(i for i in schemes):
~/Templates/virtualenv/www.dnsdumpster.net/lib/python3.7/site-packages/wafw00f/main.py in matchHeader(self, headermatch, attack)
162 if attack:
163 r = self.attackres
--> 164 else: r = rq
165 if r is None:
166 return
NameError: name 'rq' is not defined
I use your great tool as a library to https://github.com/wangoloj/dnsdumpster
At first it worked very fine, but I think after making some pip updates
that's when it broke
I even intergrated it online at https://www.nmmapper.com/tools/reconnaissance-tools/waf/web-application-firewall-detector/
from wafw00f.
WAFW00F is developed as a standalone tool only and is not intended to work as a library. So, holding this off as N/A.
from wafw00f.
The temporary solution:
Modify file main.py, add line global rq before if statement such as:
global rq
if attack:
r = self.attackres
else: r = rq
from wafw00f.
Related Issues (20)
- Missing dependency HOT 2
- Question about performance HOT 9
- The wafw00f command cannot be used on the windows system HOT 3
- wafw00f no response HOT 3
- Number of requests HOT 1
- Change param name of request HOT 1
- Added request-url on which triggered WAF to json output file
- Azure Application Gateway HOT 1
- python setup.py install command not work HOT 5
- Integration HOT 1
- Error in line 22 of the main.py file HOT 3
- HTTPSConnectionPool port 443 conduct to Read timed out - response time from the server is too low? HOT 1
- Enhancing Project Performance: Asynchronous Implementation and Multithreading Support HOT 2
- Cannot check for NAXSI HOT 1
- code plugin HOT 2
- code plugin HOT 2
- Can wafw00f detect the WAF devices being used by IPv6 websites in an IPv6 network? thanks
- 识别不出imperva waf 的securephere
- Standalone binary HOT 1
- Deprecation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wafw00f.