File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -918,7 +918,7 @@ def _setTamperingFunctions():
918918 dirname , filename = os .path .split (script )
919919 dirname = os .path .abspath (dirname )
920920
921- infoMsg = "loading tamper script '%s'" % filename [:- 3 ]
921+ infoMsg = "loading tamper module '%s'" % filename [:- 3 ]
922922 logger .info (infoMsg )
923923
924924 if not os .path .exists (os .path .join (dirname , "__init__.py" )):
@@ -932,7 +932,7 @@ def _setTamperingFunctions():
932932 try :
933933 module = __import__ (filename [:- 3 ].encode (sys .getfilesystemencoding () or UNICODE_ENCODING ))
934934 except Exception , ex :
935- raise SqlmapSyntaxException ("cannot import tamper script '%s' (%s)" % (filename [:- 3 ], getSafeExString (ex )))
935+ raise SqlmapSyntaxException ("cannot import tamper module '%s' (%s)" % (filename [:- 3 ], getSafeExString (ex )))
936936
937937 priority = PRIORITY .NORMAL if not hasattr (module , "__priority__" ) else module .__priority__
938938
@@ -962,7 +962,12 @@ def _setTamperingFunctions():
962962
963963 break
964964 elif name == "dependencies" :
965- function ()
965+ try :
966+ function ()
967+ except Exception , ex :
968+ errMsg = "error occurred while checking dependencies "
969+ errMsg += "for tamper module '%s' ('%s')" % (filename [:- 3 ], getSafeExString (ex ))
970+ raise SqlmapGenericException (errMsg )
966971
967972 if not found :
968973 errMsg = "missing function 'tamper(payload, **kwargs)' "
Original file line number Diff line number Diff line change 1919from lib .core .enums import OS
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.2.4.7 "
22+ VERSION = "1.2.4.8 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ cada93357a7321655927fc9625b3bfec lib/core/exception.py
40401e5532ede194ac9c083891c2f02bca93 lib/core/__init__.py
4141458a194764805cd8312c14ecd4be4d1e lib/core/log.py
4242c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
43- b950c8c2f2ae87ad2ec99e1d19b2c03a lib/core/option.py
43+ 83345a6b0b7e187d2cbcc280a509f03e lib/core/option.py
44447cfd04e583cca782b843f6f6d973981a lib/core/profiling.py
45456f654e1715571eff68a0f8af3d62dcf8 lib/core/readlineng.py
46460c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49- cc7aa83cd292f28d11782127d891256e lib/core/settings.py
49+ f7a3dd2314df4d3bc09ae192558ff874 lib/core/settings.py
50500dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5151a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5252a35efa7bec9f1e6cedf17c9830a79241 lib/core/target.py
You can’t perform that action at this time.
0 commit comments