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

Skip to content

Commit 95e6b6c

Browse files
committed
Implements #3835
1 parent 50b8de0 commit 95e6b6c

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

lib/controller/controller.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,15 @@ def start():
422422
if not checkConnection(suppressOutput=conf.forms) or not checkString() or not checkRegexp():
423423
continue
424424

425+
if conf.rParam and kb.originalPage:
426+
kb.randomPool = dict([_ for _ in kb.randomPool.items() if isinstance(_[1], list)])
427+
428+
for match in re.finditer(r"(?si)<select[^>]+\bname\s*=\s*[\"']([^\"']+)(.+?)</select>", kb.originalPage):
429+
name, _ = match.groups()
430+
options = tuple(re.findall(r"<option[^>]+\bvalue\s*=\s*[\"']([^\"']+)", _))
431+
if options:
432+
kb.randomPool[name] = options
433+
425434
checkWaf()
426435

427436
if conf.nullConnection:

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.8.19"
21+
VERSION = "1.3.8.20"
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)

0 commit comments

Comments
 (0)