diff --git a/lib/core/settings.py b/lib/core/settings.py index 0b2972e48..b01b6e21f 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.5.135" +VERSION = "1.3.5.136" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/thirdparty/identywaf/identYwaf.py b/thirdparty/identywaf/identYwaf.py index edb28e80a..2e17ac6c9 100755 --- a/thirdparty/identywaf/identYwaf.py +++ b/thirdparty/identywaf/identYwaf.py @@ -23,7 +23,6 @@ import ssl import socket import string import struct -import subprocess import sys import time import zlib @@ -58,11 +57,8 @@ else: Request = urllib2.Request HTTPCookieProcessor = urllib2.HTTPCookieProcessor - # Reference: http://blog.mathieu-leplatre.info/python-utf-8-print-fails-when-redirecting-stdout.html - sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sys.stdout) - NAME = "identYwaf" -VERSION = "1.0.111" +VERSION = "1.0.113" BANNER = """ ` __ __ ` ____ ___ ___ ____ ______ `| T T` __ __ ____ _____ @@ -359,6 +355,10 @@ def load_data(): def init(): os.chdir(os.path.abspath(os.path.dirname(__file__))) + # Reference: http://blog.mathieu-leplatre.info/python-utf-8-print-fails-when-redirecting-stdout.html + if IS_TTY: + sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sys.stdout) + print(colorize("[o] initializing handlers...")) # Reference: https://stackoverflow.com/a/28052583