Fix for --oob-token being sent to public OOB servers

This commit is contained in:
Miroslav Štampar 2026-11-12 14:48:17 +01:00
parent d4d2d1a315
commit f1c718c01c
2 changed files with 6 additions and 1 deletions

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.10.11.40"
VERSION = "1.10.11.41"
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)

View file

@ -49,6 +49,11 @@ class Interactsh(object):
def __init__(self, server=None, token=None):
self.server = None
self.token = token or conf.get("oobToken")
# Note: (private) token belongs only to an explicitly provided server (i.e. never to be sent to a public one)
if self.token and not server:
logger.warning("OOB token is used only with an explicitly provided OOB server (option '--oob-server')")
self.token = None
self.correlationId = randomStr(OOB_CORRELATION_ID_LENGTH, lowercase=True)
self.secret = randomStr(32, lowercase=True)
self.registered = False