This commit is contained in:
Miroslav Stampar 2020-12-07 11:22:34 +01:00
parent 12158af6ca
commit d5c9bdf279
2 changed files with 15 additions and 2 deletions

View File

@ -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):

View File

@ -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)