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

Skip to content

Commit a9c3b59

Browse files
committed
Update related to the #2999
1 parent 4528cb0 commit a9c3b59

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

lib/core/option.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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)' "

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from 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"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ cada93357a7321655927fc9625b3bfec lib/core/exception.py
4040
1e5532ede194ac9c083891c2f02bca93 lib/core/__init__.py
4141
458a194764805cd8312c14ecd4be4d1e lib/core/log.py
4242
c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
43-
b950c8c2f2ae87ad2ec99e1d19b2c03a lib/core/option.py
43+
83345a6b0b7e187d2cbcc280a509f03e lib/core/option.py
4444
7cfd04e583cca782b843f6f6d973981a lib/core/profiling.py
4545
6f654e1715571eff68a0f8af3d62dcf8 lib/core/readlineng.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
cc7aa83cd292f28d11782127d891256e lib/core/settings.py
49+
f7a3dd2314df4d3bc09ae192558ff874 lib/core/settings.py
5050
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5151
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5252
a35efa7bec9f1e6cedf17c9830a79241 lib/core/target.py

0 commit comments

Comments
 (0)