From 1241a025a274aa5b7667ee835b21f880d7719bed Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 8 May 2019 02:40:36 +0200 Subject: [PATCH] Patch for sqlmapapi (NotImplementedError) --- lib/core/settings.py | 2 +- sqlmapapi.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 231d08e94..3663ccfc4 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.3.5.48" +VERSION = "1.3.5.49" 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) diff --git a/sqlmapapi.py b/sqlmapapi.py index b4b46b467..2f9727b5d 100755 --- a/sqlmapapi.py +++ b/sqlmapapi.py @@ -21,6 +21,8 @@ warnings.filterwarnings(action="ignore", category=DeprecationWarning) from sqlmap import modulePath from lib.core.common import setPaths from lib.core.data import logger +from lib.core.patch import dirtyPatches +from lib.core.patch import resolveCrossReferences from lib.core.settings import RESTAPI_DEFAULT_ADAPTER from lib.core.settings import RESTAPI_DEFAULT_ADDRESS from lib.core.settings import RESTAPI_DEFAULT_PORT @@ -32,6 +34,9 @@ def main(): REST-JSON API main function """ + dirtyPatches() + resolveCrossReferences() + # Set default logging level to debug logger.setLevel(logging.DEBUG)