File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313import re
1414import socket
1515import subprocess
16+ import sys
1617import tempfile
1718import time
1819
9091from lib .core .settings import SLEEP_TIME_MARKER
9192from lib .core .settings import SUHOSIN_MAX_VALUE_LENGTH
9293from lib .core .settings import SUPPORTED_DBMS
94+ from lib .core .settings import UNICODE_ENCODING
9395from lib .core .settings import URI_HTTP_HEADER
9496from lib .core .settings import UPPER_RATIO_BOUND
9597from lib .core .threads import getCurrentThreadData
@@ -761,7 +763,7 @@ def genCmpPayload():
761763 infoMsg = "executing alerting shell command(s) ('%s')" % conf .alert
762764 logger .info (infoMsg )
763765
764- process = subprocess .Popen (conf .alert , shell = True )
766+ process = subprocess .Popen (conf .alert . encode ( sys . getfilesystemencoding () or UNICODE_ENCODING ) , shell = True )
765767 process .wait ()
766768
767769 kb .alerted = True
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.8.5 "
22+ VERSION = "1.2.8.6 "
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 @@ -22,7 +22,7 @@ e4805169a081b834ca51a60a150c7247 extra/shutils/newlines.py
22221e5532ede194ac9c083891c2f02bca93 extra/sqlharvest/__init__.py
2323b3e60ea4e18a65c48515d04aab28ff68 extra/sqlharvest/sqlharvest.py
24240f581182871148b0456a691ae85b04c0 lib/controller/action.py
25- 94872ce72dc2628cdedf2eb82cba716e lib/controller/checks.py
25+ bc3800ec099df253968b3a7fc1ffce44 lib/controller/checks.py
2626c414cecdb0472c92cf50ed5b01e4438c lib/controller/controller.py
2727c7443613a0a2505b1faec931cee2a6ef lib/controller/handler.py
28281e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
@@ -48,7 +48,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
48480c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4949a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5050fcb74fcc9577523524659ec49e2e964b lib/core/session.py
51- 569498929d03e722dbfefaf65c387006 lib/core/settings.py
51+ a4ded87968a06825056f25955c009db6 lib/core/settings.py
5252dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5353a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
545412bed9603b6fba3e5ffda11d584bc449 lib/core/target.py
You can’t perform that action at this time.
0 commit comments