Skip to content

Commit

Permalink
I shouldn't be merging PRs without testing
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v authored Apr 6, 2019
1 parent fc432e5 commit e66cfdd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions modes/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e66cfdd

Please sign in to comment.