mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 17:02:39 +01: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue