From eb62397c92f151196c4ac0e34eea4e3952b8523a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 12 Mar 2019 14:12:23 +0100 Subject: [PATCH] Minor update of Oracle fingerprinting --- lib/core/settings.py | 2 +- plugins/dbms/oracle/fingerprint.py | 2 +- txt/checksum.md5 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index f79969773..de38f0668 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.3.3.22" +VERSION = "1.3.3.23" 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/dbms/oracle/fingerprint.py b/plugins/dbms/oracle/fingerprint.py index 3cf07e697..29d35296a 100644 --- a/plugins/dbms/oracle/fingerprint.py +++ b/plugins/dbms/oracle/fingerprint.py @@ -103,7 +103,7 @@ class Fingerprint(GenericFingerprint): logger.info(infoMsg) # Reference: https://en.wikipedia.org/wiki/Oracle_Database - for version in ("12c", "11g", "10g", "9i", "8i"): + for version in ("18c", "12c", "11g", "10g", "9i", "8i"): number = int(re.search(r"([\d]+)", version).group(1)) output = inject.checkBooleanExpression("%d=(SELECT SUBSTR((VERSION),1,%d) FROM SYS.PRODUCT_COMPONENT_VERSION WHERE ROWNUM=1)" % (number, 1 if number < 10 else 2)) diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 7cfa865fa..1540a84a6 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -50,7 +50,7 @@ d5ef43fe3cdd6c2602d7db45651f9ceb lib/core/readlineng.py 7d8a22c582ad201f65b73225e4456170 lib/core/replication.py 3179d34f371e0295dd4604568fb30bcd lib/core/revision.py d6269c55789f78cf707e09a0f5b45443 lib/core/session.py -a6370a4c60104413c514c021f8409a44 lib/core/settings.py +c5129be9a3bf208a709866d00fb71a29 lib/core/settings.py 4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py 10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py d9483455ff80d33a55db46ae2fa34a05 lib/core/target.py @@ -188,7 +188,7 @@ dd6bd1d3d561755b96e953ede16cb8fc plugins/dbms/mysql/syntax.py 82ed71cf0e9283859b61c88325255eb2 plugins/dbms/oracle/connector.py 3266e81eb4a3c083d27c7a255be38893 plugins/dbms/oracle/enumeration.py 5bdd5288c8303ea21a5f8409332e32a1 plugins/dbms/oracle/filesystem.py -8813f44f3b67fc98024199c7b8398811 plugins/dbms/oracle/fingerprint.py +48201c296b2ce285488c2325fff5c625 plugins/dbms/oracle/fingerprint.py c7bb3f112aad2ea7ea92e036e9aab6a7 plugins/dbms/oracle/__init__.py 2676a1544b454f276c64f5147f03ce02 plugins/dbms/oracle/syntax.py 8da7c9ee0a0e692097757dfc2b5fefe0 plugins/dbms/oracle/takeover.py