Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc50543 commit 7e1f784Copy full SHA for 7e1f784
1 file changed
lib/core/option.py
@@ -559,12 +559,18 @@ def __setTamperingFunctions():
559
elif os.path.splitext(file)[1] != '.py':
560
errMsg = "tampering module file should have an extension '.py'"
561
raise sqlmapSyntaxException, errMsg
562
+
563
dirname, filename = os.path.split(file)
564
dirname = os.path.abspath(dirname)
565
566
+ infoMsg = "loading tampering module: '%s'" % filename[:-3]
567
+ logger.info(infoMsg)
568
569
if not os.path.exists(os.path.join(dirname, '__init__.py')):
570
errMsg = "make sure that there is an empty file '__init__.py' "
571
errMsg += "inside of tampering module directory '%s'" % dirname
572
raise sqlmapGenericException, errMsg
573
574
if dirname not in sys.path:
575
sys.path.insert(0, dirname)
576
try:
0 commit comments