diff --git a/lib/core/settings.py b/lib/core/settings.py index 5ff454131..b4ac1fa5e 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.11.34" +VERSION = "1.10.11.35" 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/plugins/generic/custom.py b/plugins/generic/custom.py index 4d3ce0b70..cab2fef24 100644 --- a/plugins/generic/custom.py +++ b/plugins/generic/custom.py @@ -152,6 +152,7 @@ class Custom(object): # User SQL is not a bundled procedure template: preserve literals and percent tokens. snippet = readCachedFileContent(filename) + snippet = "\n".join(_ for _ in snippet.split("\n") if not re.match(r"\s*(--|#)", _)) # Note: only whole comment lines (literals stay intact) queries = [_.strip() for _ in splitFields(snippet, delimiter=';' if zeroDepthSearch(snippet, ';') else '\n') if _.strip()] if queries and all(query.upper().startswith("SELECT") for query in queries):