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

Skip to content

Commit 1b1c37e

Browse files
committed
Minor update
1 parent adbc4ba commit 1b1c37e

4 files changed

Lines changed: 24 additions & 21 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.3.11.10"
21+
VERSION = "1.3.11.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)

lib/utils/crawler.py

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -195,27 +195,28 @@ def crawlThread():
195195
for url in threadData.shared.value:
196196
kb.targets.add((urldecode(url, kb.pageEncoding), None, None, None, None))
197197

198-
if kb.normalizeCrawlingChoice is None:
199-
message = "do you want to normalize "
200-
message += "crawling results [Y/n] "
198+
if kb.targets:
199+
if kb.normalizeCrawlingChoice is None:
200+
message = "do you want to normalize "
201+
message += "crawling results [Y/n] "
201202

202-
kb.normalizeCrawlingChoice = readInput(message, default='Y', boolean=True)
203+
kb.normalizeCrawlingChoice = readInput(message, default='Y', boolean=True)
203204

204-
if kb.normalizeCrawlingChoice:
205-
seen = set()
206-
results = OrderedSet()
205+
if kb.normalizeCrawlingChoice:
206+
seen = set()
207+
results = OrderedSet()
207208

208-
for target in kb.targets:
209-
match = re.search(r"/[^/?]*\?.*\Z", target[0])
210-
if match:
211-
key = re.sub(r"=[^=&]*", "=", match.group(0))
212-
if key not in seen:
213-
results.add(target)
214-
seen.add(key)
209+
for target in kb.targets:
210+
match = re.search(r"/[^/?]*\?.*\Z", target[0])
211+
if match:
212+
key = re.sub(r"=[^=&]*", "=", match.group(0))
213+
if key not in seen:
214+
results.add(target)
215+
seen.add(key)
215216

216-
kb.targets = results
217+
kb.targets = results
217218

218-
storeResultsToFile(kb.targets)
219+
storeResultsToFile(kb.targets)
219220

220221
def storeResultsToFile(results):
221222
if not results:

plugins/dbms/mysql/fingerprint.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def _commentCheck(self):
4141
return None
4242

4343
# Reference: https://downloads.mysql.com/archives/community/
44+
# Reference: https://dev.mysql.com/doc/relnotes/mysql/<major>.<minor>/en/
45+
4446
versions = (
4547
(32200, 32235), # MySQL 3.22
4648
(32300, 32359), # MySQL 3.23
@@ -50,10 +52,10 @@ def _commentCheck(self):
5052
(50100, 50174), # MySQL 5.1
5153
(50400, 50404), # MySQL 5.4
5254
(50500, 50562), # MySQL 5.5
53-
(50600, 50646), # MySQL 5.6
54-
(50700, 50726), # MySQL 5.7
55+
(50600, 50648), # MySQL 5.6
56+
(50700, 50730), # MySQL 5.7
5557
(60000, 60014), # MySQL 6.0
56-
(80000, 80017), # MySQL 8.0
58+
(80000, 80021), # MySQL 8.0
5759
)
5860

5961
index = -1

plugins/dbms/oracle/fingerprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def checkDbms(self):
105105
logger.info(infoMsg)
106106

107107
# Reference: https://en.wikipedia.org/wiki/Oracle_Database
108-
for version in ("18c", "12c", "11g", "10g", "9i", "8i", "7"):
108+
for version in ("19c", "18c", "12c", "11g", "10g", "9i", "8i", "7"):
109109
number = int(re.search(r"([\d]+)", version).group(1))
110110
output = inject.checkBooleanExpression("%d=(SELECT SUBSTR((VERSION),1,%d) FROM SYS.PRODUCT_COMPONENT_VERSION WHERE ROWNUM=1)" % (number, 1 if number < 10 else 2))
111111

0 commit comments

Comments
 (0)