mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Fixes #4012
This commit is contained in:
parent
95c5c20de4
commit
0d140b60f1
3 changed files with 8 additions and 4 deletions
|
|
@ -42,7 +42,7 @@ from thirdparty.beautifulsoup.beautifulsoup import BeautifulSoup
|
|||
from thirdparty.six.moves import http_client as _http_client
|
||||
from thirdparty.six.moves import urllib as _urllib
|
||||
|
||||
def crawl(target):
|
||||
def crawl(target, post=None, cookie=None):
|
||||
if not target:
|
||||
return
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ def crawl(target):
|
|||
content = None
|
||||
try:
|
||||
if current:
|
||||
content = Request.getPage(url=current, crawling=True, raise404=False)[0]
|
||||
content = Request.getPage(url=current, post=post, cookie=None, crawling=True, raise404=False)[0]
|
||||
except SqlmapConnectionException as ex:
|
||||
errMsg = "connection exception detected ('%s'). skipping " % getSafeExString(ex)
|
||||
errMsg += "URL '%s'" % current
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue