Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0986ec8

Browse files
committed
Update for Oracle fingerprinting
1 parent 50bced5 commit 0986ec8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.6.13"
22+
VERSION = "1.0.6.14"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

plugins/dbms/oracle/fingerprint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ def checkDbms(self):
102102
infoMsg = "actively fingerprinting %s" % DBMS.ORACLE
103103
logger.info(infoMsg)
104104

105-
for version in ("11i", "10g", "9i", "8i"):
105+
# Reference: https://en.wikipedia.org/wiki/Oracle_Database
106+
for version in ("12c", "11g", "10g", "9i", "8i"):
106107
number = int(re.search("([\d]+)", version).group(1))
107108
output = inject.checkBooleanExpression("%d=(SELECT SUBSTR((VERSION),1,%d) FROM SYS.PRODUCT_COMPONENT_VERSION WHERE ROWNUM=1)" % (number, 1 if number < 10 else 2))
108109

0 commit comments

Comments
 (0)