mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Patch for #4467
This commit is contained in:
parent
12158af6ca
commit
d5c9bdf279
|
@ -12,6 +12,7 @@ import functools
|
|||
import math
|
||||
import os
|
||||
import random
|
||||
import string
|
||||
import sys
|
||||
import time
|
||||
import uuid
|
||||
|
@ -186,7 +187,19 @@ def cmp(a, b):
|
|||
|
||||
# Reference: https://github.com/urllib3/urllib3/blob/master/src/urllib3/filepost.py
|
||||
def choose_boundary():
|
||||
return uuid.uuid4().hex
|
||||
"""
|
||||
>>> len(choose_boundary()) == 32
|
||||
True
|
||||
"""
|
||||
|
||||
retval = ""
|
||||
|
||||
try:
|
||||
retval = uuid.uuid4().hex
|
||||
except AttributeError:
|
||||
retval = "".join(random.sample("0123456789abcdef", 1)[0] for _ in xrange(32))
|
||||
|
||||
return retval
|
||||
|
||||
# Reference: http://python3porting.com/differences.html
|
||||
def round(x, d=0):
|
||||
|
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.4.12.10"
|
||||
VERSION = "1.4.12.11"
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user