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

Skip to content

Commit 0d140b6

Browse files
committed
Fixes #4012
1 parent 95c5c20 commit 0d140b6

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

lib/core/option.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,11 @@ def _setCrawler():
336336
return
337337

338338
if not conf.bulkFile:
339-
crawl(conf.url)
339+
if conf.url:
340+
crawl(conf.url)
341+
elif conf.requestFile and kb.targets:
342+
target = list(kb.targets)[0]
343+
crawl(target[0], target[2], target[3])
340344

341345
def _doSearch():
342346
"""

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.52"
21+
VERSION = "1.3.11.53"
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
from thirdparty.six.moves import http_client as _http_client
4343
from thirdparty.six.moves import urllib as _urllib
4444

45-
def crawl(target):
45+
def crawl(target, post=None, cookie=None):
4646
if not target:
4747
return
4848

@@ -73,7 +73,7 @@ def crawlThread():
7373
content = None
7474
try:
7575
if current:
76-
content = Request.getPage(url=current, crawling=True, raise404=False)[0]
76+
content = Request.getPage(url=current, post=post, cookie=None, crawling=True, raise404=False)[0]
7777
except SqlmapConnectionException as ex:
7878
errMsg = "connection exception detected ('%s'). skipping " % getSafeExString(ex)
7979
errMsg += "URL '%s'" % current

0 commit comments

Comments
 (0)