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