Running version: 1.10.5.0
Python version: 3.14.3
Operating system: Windows-2025Server-10.0.26100-SP0
Command line: sqlmap.py --proxy *********************** --random-agent --threads 5 -u ******************************************* --dbs
Technique: UNION
Back-end DBMS: MySQL (fingerprinted)
Traceback (most recent call last):
File "sqlmap.py", line 222, in main
start()
~~~~~^^
File "lib/core/decorators.py", line 99, in _
result = f(*args, **kwargs)
File "lib/controller/controller.py", line 732, in start
action()
~~~~~~^^
File "lib/controller/action.py", line 107, in action
conf.dumper.dbs(conf.dbmsHandler.getDbs())
~~~~~~~~~~~~~~~~~~~~~~~^^
File "plugins/generic/databases.py", line 140, in getDbs
values = inject.getValue(query, blind=False, time=False)
File "lib/core/decorators.py", line 125, in _
result = f(*args, **kwargs)
File "lib/core/decorators.py", line 99, in _
result = f(*args, **kwargs)
File "lib/request/inject.py", line 423, in getValue
value = _goUnion(forgeCaseExpression if expected == EXPECTED.BOOL else query, unpack, dump)
File "lib/request/inject.py", line 352, in _goUnion
output = unionUse(expression, unpack=unpack, dump=dump)
File "lib/techniques/union/use.py", line 285, in unionUse
output = _oneShotUnionUse(query, False)
File "lib/techniques/union/use.py", line 94, in _oneShotUnionUse
payload = agent.payload(newValue=query, where=where)
File "lib/core/agent.py", line 301, in payload
retVal = self.random_case_keywords(retVal)
File "lib/core/agent.py", line 96, in random_case_keywords
payload = re.sub(
r"\b%s\b" % k,
...<5 lines>...
flags=re.I
)
File "/Python314/Lib/re/__init__.py", line 208, in sub
return _compile(pattern, flags).sub(repl, string, count)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "lib/core/agent.py", line 98, in <lambda>
lambda m: "".join(
~~~~~~~^
c.upper() if random.random() > 0.5 else c.lower()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
for c in m.group(0)
^^^^^^^^^^^^^^^^^^^
),
^
File "lib/core/agent.py", line 99, in <genexpr>
c.upper() if random.random() > 0.5 else c.lower()
^^^^^^
NameError: name 'random' is not defined. Did you mean: 'randomInt'? Or did you forget to import 'random'?