mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
fix for a privately reported bug ("AttributeError: item is disabled")
This commit is contained in:
parent
93dee30895
commit
5e9620198c
|
@ -465,7 +465,11 @@ def __findPageForms():
|
||||||
for form in forms:
|
for form in forms:
|
||||||
for control in form.controls:
|
for control in form.controls:
|
||||||
if hasattr(control, 'items'):
|
if hasattr(control, 'items'):
|
||||||
control.items[0].selected = True
|
# if control has selectable items select first non-disabled
|
||||||
|
for item in control.items:
|
||||||
|
if not item.disabled:
|
||||||
|
item.selected = True
|
||||||
|
break
|
||||||
request = form.click()
|
request = form.click()
|
||||||
url = urldecode(request.get_full_url(), kb.pageEncoding)
|
url = urldecode(request.get_full_url(), kb.pageEncoding)
|
||||||
method = request.get_method()
|
method = request.get_method()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user