mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-17 21:48:59 +00:00
Fix for --oob-token being sent to public OOB servers
This commit is contained in:
parent
d4d2d1a315
commit
f1c718c01c
2 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue