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

Skip to content

Commit 89d25a1

Browse files
committed
Trivial patches
1 parent 9bc466e commit 89d25a1

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.5.3.10"
21+
VERSION = "1.5.3.11"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/generic/connector.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,20 @@ def checkFileDb(self):
6363

6464
def connect(self):
6565
errMsg = "'connect' method must be defined "
66-
errMsg += "into the specific DBMS plugin"
66+
errMsg += "inside the specific DBMS plugin"
6767
raise SqlmapUndefinedMethod(errMsg)
6868

6969
def fetchall(self):
7070
errMsg = "'fetchall' method must be defined "
71-
errMsg += "into the specific DBMS plugin"
71+
errMsg += "inside the specific DBMS plugin"
7272
raise SqlmapUndefinedMethod(errMsg)
7373

7474
def execute(self, query):
7575
errMsg = "'execute' method must be defined "
76-
errMsg += "into the specific DBMS plugin"
76+
errMsg += "inside the specific DBMS plugin"
7777
raise SqlmapUndefinedMethod(errMsg)
7878

7979
def select(self, query):
8080
errMsg = "'select' method must be defined "
81-
errMsg += "into the specific DBMS plugin"
81+
errMsg += "inside the specific DBMS plugin"
8282
raise SqlmapUndefinedMethod(errMsg)

plugins/generic/databases.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
594594
if conf.db is not None and len(kb.data.cachedColumns) > 0 \
595595
and conf.db in kb.data.cachedColumns and tbl in \
596596
kb.data.cachedColumns[conf.db]:
597-
infoMsg = "fetched tables' columns on "
597+
infoMsg = "fetched table columns from "
598598
infoMsg += "database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
599599
logger.info(infoMsg)
600600

@@ -619,7 +619,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
619619
query += condQuery
620620

621621
if Backend.isFork(FORK.DRIZZLE):
622-
query = query.replace("column_type", "data_type")
622+
query = re.sub("column_type", "data_type", query, flags=re.I)
623623

624624
elif Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2, DBMS.DERBY, DBMS.ALTIBASE, DBMS.MIMERSQL):
625625
query = rootQuery.inband.query % (unsafeSQLIdentificatorNaming(tbl.upper()), unsafeSQLIdentificatorNaming(conf.db.upper()))
@@ -730,7 +730,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
730730
if conf.db is not None and len(kb.data.cachedColumns) > 0 \
731731
and conf.db in kb.data.cachedColumns and tbl in \
732732
kb.data.cachedColumns[conf.db]:
733-
infoMsg = "fetched tables' columns on "
733+
infoMsg = "fetched table columns from "
734734
infoMsg += "database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
735735
logger.info(infoMsg)
736736

@@ -1050,7 +1050,7 @@ def getStatements(self):
10501050
query = rootQuery.blind.count
10511051

10521052
if Backend.isFork(FORK.DRIZZLE):
1053-
query = query.replace("INFORMATION_SCHEMA", "DATA_DICTIONARY")
1053+
query = re.sub("INFORMATION_SCHEMA", "DATA_DICTIONARY", query, flags=re.I)
10541054

10551055
count = inject.getValue(query, union=False, error=False, expected=EXPECTED.INT, charsetType=CHARSET_TYPE.DIGITS)
10561056

@@ -1078,7 +1078,7 @@ def getStatements(self):
10781078
query = rootQuery.blind.query % index
10791079

10801080
if Backend.isFork(FORK.DRIZZLE):
1081-
query = query.replace("INFORMATION_SCHEMA", "DATA_DICTIONARY")
1081+
query = re.sub("INFORMATION_SCHEMA", "DATA_DICTIONARY", query, flags=re.I)
10821082

10831083
value = unArrayizeValue(inject.getValue(query, union=False, error=False))
10841084

0 commit comments

Comments
 (0)