Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e1f784

Browse files
committed
cosmetic update
1 parent dc50543 commit 7e1f784

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/core/option.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,12 +559,18 @@ def __setTamperingFunctions():
559559
elif os.path.splitext(file)[1] != '.py':
560560
errMsg = "tampering module file should have an extension '.py'"
561561
raise sqlmapSyntaxException, errMsg
562+
562563
dirname, filename = os.path.split(file)
563564
dirname = os.path.abspath(dirname)
565+
566+
infoMsg = "loading tampering module: '%s'" % filename[:-3]
567+
logger.info(infoMsg)
568+
564569
if not os.path.exists(os.path.join(dirname, '__init__.py')):
565570
errMsg = "make sure that there is an empty file '__init__.py' "
566571
errMsg += "inside of tampering module directory '%s'" % dirname
567572
raise sqlmapGenericException, errMsg
573+
568574
if dirname not in sys.path:
569575
sys.path.insert(0, dirname)
570576
try:

0 commit comments

Comments
 (0)