Bug fix (there was a problem using --tamper=varnish with --identify-waf because of same named modules)

This commit is contained in:
Miroslav Stampar 2014-09-30 09:58:02 +02:00
parent ff42720c62
commit 4d23744430

View File

@ -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))