This commit is contained in:
Miroslav Stampar
2024-06-17 18:41:25 +02:00
parent 0b9a8c57d7
commit cf91046766
3 changed files with 19 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ See the file 'LICENSE' for copying permission
import codecs
import collections
import inspect
import logging
import os
import random
import re
@@ -135,6 +136,21 @@ def dirtyPatches():
codecs.register_error("reversible", _reversible)
# Reference: https://github.com/sqlmapproject/sqlmap/issues/5731
if not hasattr(logging, "_acquireLock"):
def _acquireLock():
if logging._lock:
logging._lock.acquire()
logging._acquireLock = _acquireLock
if not hasattr(logging, "_releaseLock"):
def _releaseLock():
if logging._lock:
logging._lock.release()
logging._releaseLock = _releaseLock
def resolveCrossReferences():
"""
Place for cross-reference resolution

View File

@@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.8.6.6"
VERSION = "1.8.6.7"
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)