File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636from thirdparty import six
3737from thirdparty .six .moves import http_client as _http_client
3838
39+ _rand = 0
40+
3941def dirtyPatches ():
4042 """
4143 Place for "dirty" Python related patches
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.4.2.19 "
21+ VERSION = "1.4.2.20 "
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 55See the file 'LICENSE' for copying permission
66"""
77
8- from __future__ import division
9-
108import doctest
119import logging
1210import os
3533from lib .core .data import queries
3634from lib .core .patch import unisonRandom
3735
38- _rand = 0
39-
4036def vulnTest ():
4137 """
4238 Runs the testing against 'vulnserver'
Original file line number Diff line number Diff line change 44Copyright (c) 2006-2020 sqlmap developers (http://sqlmap.org/)
55See the file 'LICENSE' for copying permission
66"""
7- from __future__ import print_function
87
98import codecs
109import gzip
@@ -239,12 +238,8 @@ def checkCharEncoding(encoding, warn=True):
239238
240239 if encoding :
241240 try :
242- _ = getBytes (randomStr ())
243- print (repr (_ ))
244- print (encoding )
245- six .text_type (_ , encoding )
246- except Exception as ex :
247- print (getSafeExString (ex ))
241+ six .text_type (getBytes (randomStr ()), encoding )
242+ except :
248243 if warn :
249244 warnMsg = "invalid web page charset '%s'" % encoding
250245 singleTimeLogMessage (warnMsg , logging .WARN , encoding )
You can’t perform that action at this time.
0 commit comments