mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Bug fix (there was a problem using --tamper=varnish with --identify-waf because of same named modules)
This commit is contained in:
parent
ff42720c62
commit
4d23744430
|
@ -998,6 +998,8 @@ def _setWafFunctions():
|
|||
sys.path.insert(0, dirname)
|
||||
|
||||
try:
|
||||
if filename[:-3] in sys.modules:
|
||||
del sys.modules[filename[:-3]]
|
||||
module = __import__(filename[:-3])
|
||||
except ImportError, msg:
|
||||
raise SqlmapSyntaxException("cannot import WAF script '%s' (%s)" % (filename[:-3], msg))
|
||||
|
|
Loading…
Reference in New Issue
Block a user