File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66"""
77
88import codecs
9+ import os
910import random
1011
1112import lib .controller .checks
@@ -76,6 +77,15 @@ def _(self, *args):
7677 # to prevent too much "guessing" in case of binary data retrieval
7778 thirdparty .chardet .universaldetector .MINIMUM_THRESHOLD = 0.90
7879
80+ # https://github.com/sqlmapproject/sqlmap/issues/4314
81+ try :
82+ os .urandom (1 )
83+ except NotImplemented :
84+ if six .PY3 :
85+ os .urandom = lambda size : bytes (random .randint (0 , 255 ) for _ in range (size ))
86+ else :
87+ os .urandom = lambda size : "" .join (chr (random .randint (0 , 255 )) for _ in xrange (size ))
88+
7989def resolveCrossReferences ():
8090 """
8191 Place for cross-reference resolution
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.8.11 "
21+ VERSION = "1.4.8.12 "
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 )
You can’t perform that action at this time.
0 commit comments