I shouldn't be merging PRs without testing

This commit is contained in:
Somdev Sangwan
2019-04-06 20:26:23 +05:30
committed by GitHub
parent fc432e5256
commit e66cfddecd

View File

@@ -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)