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

Skip to content

Commit a296d22

Browse files
committed
Fixes #3205
1 parent ad11749 commit a296d22

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/controller/checks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import re
1414
import socket
1515
import subprocess
16+
import sys
1617
import tempfile
1718
import time
1819

@@ -90,6 +91,7 @@
9091
from lib.core.settings import SLEEP_TIME_MARKER
9192
from lib.core.settings import SUHOSIN_MAX_VALUE_LENGTH
9293
from lib.core.settings import SUPPORTED_DBMS
94+
from lib.core.settings import UNICODE_ENCODING
9395
from lib.core.settings import URI_HTTP_HEADER
9496
from lib.core.settings import UPPER_RATIO_BOUND
9597
from 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

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.8.5"
22+
VERSION = "1.2.8.6"
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
@@ -22,7 +22,7 @@ e4805169a081b834ca51a60a150c7247 extra/shutils/newlines.py
2222
1e5532ede194ac9c083891c2f02bca93 extra/sqlharvest/__init__.py
2323
b3e60ea4e18a65c48515d04aab28ff68 extra/sqlharvest/sqlharvest.py
2424
0f581182871148b0456a691ae85b04c0 lib/controller/action.py
25-
94872ce72dc2628cdedf2eb82cba716e lib/controller/checks.py
25+
bc3800ec099df253968b3a7fc1ffce44 lib/controller/checks.py
2626
c414cecdb0472c92cf50ed5b01e4438c lib/controller/controller.py
2727
c7443613a0a2505b1faec931cee2a6ef lib/controller/handler.py
2828
1e5532ede194ac9c083891c2f02bca93 lib/controller/__init__.py
@@ -48,7 +48,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4848
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4949
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5050
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
51-
569498929d03e722dbfefaf65c387006 lib/core/settings.py
51+
a4ded87968a06825056f25955c009db6 lib/core/settings.py
5252
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5353
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5454
12bed9603b6fba3e5ffda11d584bc449 lib/core/target.py

0 commit comments

Comments
 (0)