Skip to content

Commit 791873e

Browse files
committed
Fixes #3702
1 parent e869728 commit 791873e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.135"
21+
VERSION = "1.3.5.136"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

thirdparty/identywaf/identYwaf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import socket
2424
import string
2525
import struct
26-
import subprocess
2726
import sys
2827
import time
2928
import zlib
@@ -58,11 +57,8 @@
5857
Request = urllib2.Request
5958
HTTPCookieProcessor = urllib2.HTTPCookieProcessor
6059

61-
# Reference: http://blog.mathieu-leplatre.info/python-utf-8-print-fails-when-redirecting-stdout.html
62-
sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sys.stdout)
63-
6460
NAME = "identYwaf"
65-
VERSION = "1.0.111"
61+
VERSION = "1.0.113"
6662
BANNER = """
6763
` __ __ `
6864
____ ___ ___ ____ ______ `| T T` __ __ ____ _____
@@ -359,6 +355,10 @@ def load_data():
359355
def init():
360356
os.chdir(os.path.abspath(os.path.dirname(__file__)))
361357

358+
# Reference: http://blog.mathieu-leplatre.info/python-utf-8-print-fails-when-redirecting-stdout.html
359+
if IS_TTY:
360+
sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sys.stdout)
361+
362362
print(colorize("[o] initializing handlers..."))
363363

364364
# Reference: https://stackoverflow.com/a/28052583

0 commit comments

Comments
 (0)