This commit is contained in:
Miroslav Stampar
2025-07-13 23:54:17 +02:00
parent 12594c2dc7
commit 2ffaaca3d0
4 changed files with 15 additions and 6 deletions

View File

@@ -99,6 +99,15 @@ def dirtyPatches():
else:
os.urandom = lambda size: "".join(chr(random.randint(0, 255)) for _ in xrange(size))
# Reference: https://github.com/sqlmapproject/sqlmap/issues/5929
try:
global collections
if not hasattr(collections, "MutableSet"):
import collections.abc
collections.MutableSet = collections.abc.MutableSet
except ImportError:
pass
# Reference: https://github.com/sqlmapproject/sqlmap/issues/5727
# Reference: https://stackoverflow.com/a/14076841
try: