File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from 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 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_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 2323import socket
2424import string
2525import struct
26- import subprocess
2726import sys
2827import time
2928import zlib
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-
6460NAME = "identYwaf"
65- VERSION = "1.0.111 "
61+ VERSION = "1.0.113 "
6662BANNER = """
6763 ` __ __ `
6864 ____ ___ ___ ____ ______ `| T T` __ __ ____ _____
@@ -359,6 +355,10 @@ def load_data():
359355def 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
You can’t perform that action at this time.
0 commit comments