Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions extra/esperanto/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def buildHandler():
from lib.core.enums import CHARSET_TYPE
from lib.core.enums import EXPECTED
from lib.core.exception import SqlmapDataException
from lib.core.exception import SqlmapUnsupportedFeatureException
from lib.request.inject import checkBooleanExpression
from lib.request.inject import getValue
from plugins.generic.enumeration import Enumeration
Expand All @@ -53,6 +54,15 @@ def __init__(self):
# reuses what --columns already enumerated
self._scopeCache = {} # table -> resolved schema (see _scopeFor)

def __getattr__(self, name):
# this handler only mixes in Enumeration/Miscellaneous (read-only, boolean-oracle
# extraction); any DBMS-specific capability (--os-*/--file-*/--sql-shell/--udf-*/--reg-*/
# --cleanup) has no generic equivalent - fail cleanly instead of an AttributeError deep
# in action(). Leading underscore excluded so internal/dunder lookups behave normally.
if name.startswith("_"):
raise AttributeError(name)
raise SqlmapUnsupportedFeatureException("Esperanto does not support '%s' (DBMS-agnostic engine covers enumeration/dump only)" % name)

def _engine(self):
if self._esp is None:
# esperanto is a PURE boolean-oracle engine: every probe is one true/false
Expand Down
2 changes: 1 addition & 1 deletion lib/controller/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ def checkJWT():
headers, missing expiry), hinting at '--jwt' for active confirmation and injection.
"""

if kb.jwtChecked or conf.jwt:
if kb.get("jwtChecked") or conf.jwt:
return

kb.jwtChecked = True
Expand Down
2 changes: 1 addition & 1 deletion lib/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from thirdparty import six

# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.9.6"
VERSION = "1.10.9.8"
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)
Expand Down