mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
minor update
This commit is contained in:
parent
e33428b833
commit
e73a147fb5
|
@ -21,6 +21,7 @@ import urllib2
|
|||
import urlparse
|
||||
|
||||
from extra.clientform.clientform import ParseResponse
|
||||
from extra.clientform.clientform import ParseError
|
||||
from extra.keepalive import keepalive
|
||||
from extra.xmlobject import xmlobject
|
||||
from lib.controller.checks import checkConnection
|
||||
|
@ -426,7 +427,11 @@ def __findPageForms():
|
|||
logger.info(infoMsg)
|
||||
|
||||
response, _ = Request.queryPage(response=True)
|
||||
forms = ParseResponse(response, backwards_compat=False)
|
||||
try:
|
||||
forms = ParseResponse(response, backwards_compat=False)
|
||||
except ParseError:
|
||||
errMsg = "badly formed HTML at the target url. can't parse forms"
|
||||
raise sqlmapGenericException, errMsg
|
||||
|
||||
if forms:
|
||||
for form in forms:
|
||||
|
|
Loading…
Reference in New Issue
Block a user