File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1212import math
1313import os
1414import random
15+ import string
1516import sys
1617import time
1718import uuid
@@ -186,7 +187,19 @@ def cmp(a, b):
186187
187188# Reference: https://github.com/urllib3/urllib3/blob/master/src/urllib3/filepost.py
188189def choose_boundary ():
189- return uuid .uuid4 ().hex
190+ """
191+ >>> len(choose_boundary()) == 32
192+ True
193+ """
194+
195+ retval = ""
196+
197+ try :
198+ retval = uuid .uuid4 ().hex
199+ except AttributeError :
200+ retval = "" .join (random .sample ("0123456789abcdef" , 1 )[0 ] for _ in xrange (32 ))
201+
202+ return retval
190203
191204# Reference: http://python3porting.com/differences.html
192205def round (x , d = 0 ):
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.12.10 "
21+ VERSION = "1.4.12.11 "
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