File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -899,18 +899,22 @@ def _setTamperingFunctions():
899899
900900 script = script .strip ().encode (sys .getfilesystemencoding () or UNICODE_ENCODING )
901901
902- if not script :
903- continue
902+ try :
903+ if not script :
904+ continue
904905
905- elif os .path .exists (os .path .join (paths .SQLMAP_TAMPER_PATH , script if script .endswith (".py" ) else "%s.py" % script )):
906- script = os .path .join (paths .SQLMAP_TAMPER_PATH , script if script .endswith (".py" ) else "%s.py" % script )
906+ elif os .path .exists (os .path .join (paths .SQLMAP_TAMPER_PATH , script if script .endswith (".py" ) else "%s.py" % script )):
907+ script = os .path .join (paths .SQLMAP_TAMPER_PATH , script if script .endswith (".py" ) else "%s.py" % script )
907908
908- elif not os .path .exists (script ):
909- errMsg = "tamper script '%s' does not exist" % script
910- raise SqlmapFilePathException (errMsg )
909+ elif not os .path .exists (script ):
910+ errMsg = "tamper script '%s' does not exist" % script
911+ raise SqlmapFilePathException (errMsg )
911912
912- elif not script .endswith (".py" ):
913- errMsg = "tamper script '%s' should have an extension '.py'" % script
913+ elif not script .endswith (".py" ):
914+ errMsg = "tamper script '%s' should have an extension '.py'" % script
915+ raise SqlmapSyntaxException (errMsg )
916+ except UnicodeDecodeError :
917+ errMsg = "invalid character provided in option '--tamper'"
914918 raise SqlmapSyntaxException (errMsg )
915919
916920 dirname , filename = os .path .split (script )
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.1.1.14 "
22+ VERSION = "1.1.1.15 "
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 @@ -39,13 +39,13 @@ a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
3939310efc965c862cfbd7b0da5150a5ad36 lib/core/__init__.py
40409ba39bf66e9ecd469446bdbbeda906c3 lib/core/log.py
4141e544108e2238d756c94a240e8a1ce061 lib/core/optiondict.py
42- 44a61841bcd0bafc4151e31d5a14287d lib/core/option.py
42+ 796eb85d5f6e7657e40d584c018d6f5b lib/core/option.py
43435f2f56e6c5f274408df61943f1e080c0 lib/core/profiling.py
444440be71cd774662a7b420caeb7051e7d5 lib/core/readlineng.py
4545d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4646785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
474740c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
48- 2ce52e30cd8111887675e4b847b0a076 lib/core/settings.py
48+ 615c9fe6c1ce36972c77f313d8d331e1 lib/core/settings.py
4949d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
50502ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5151afd0636d2e93c23f4f0a5c9b6023ea17 lib/core/target.py
You can’t perform that action at this time.
0 commit comments