I shouldn't be merging PRs without testing
This commit is contained in:
@@ -34,18 +34,6 @@ def scan(target, paramData, encoding, headers, delay, timeout, skipDOM, find, sk
|
||||
response = requester(target, {}, headers, GET, delay, timeout).text
|
||||
|
||||
|
||||
foundMethod = 'GET'
|
||||
find_post_method = re.findall(
|
||||
r'<form.*?method=\'(.*?)\'.*?>|<form.*?method="(.*?)".*?>', response)
|
||||
for method in find_post_method:
|
||||
try:
|
||||
foundMethod = method[1]
|
||||
except UnboundLocalError:
|
||||
pass
|
||||
|
||||
if foundMethod.upper() == 'POST':
|
||||
GET, POST = (False, True)
|
||||
|
||||
if not skipDOM:
|
||||
logger.run('Checking for DOM vulnerabilities')
|
||||
highlighted = dom(response)
|
||||
|
||||
Reference in New Issue
Block a user