mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-27 04:05:58 +00:00
Couple of patches
This commit is contained in:
parent
239e4d7927
commit
c95c370254
5 changed files with 13 additions and 5 deletions
|
|
@ -330,8 +330,13 @@ def _setRequestFromFile():
|
|||
infoMsg = "parsing second-order HTTP request from '%s'" % conf.secondReq
|
||||
logger.info(infoMsg)
|
||||
|
||||
target = next(parseRequestFile(conf.secondReq, False))
|
||||
kb.secondReq = target
|
||||
try:
|
||||
target = next(parseRequestFile(conf.secondReq, False))
|
||||
kb.secondReq = target
|
||||
except StopIteration:
|
||||
errMsg = "specified second-order HTTP request file '%s' " % conf.secondReq
|
||||
errMsg += "does not contain a valid HTTP request"
|
||||
raise SqlmapDataException(errMsg)
|
||||
|
||||
def _setCrawler():
|
||||
if not conf.crawlDepth:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue