Skip to content

Commit cbb2e44

Browse files
authored
defined "app"
1 parent e9f31de commit cbb2e44

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

modules/wappalyzer.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ def wappalyzer(response, js, scripts):
88
result = []
99
headers = response.headers
1010
source_code = response.text
11-
if 'Cookie' in headers and 'cookies' in signatures[app]:
12-
for pattern in signatures['apps'][app]['cookies']:
13-
if re.search(deJSON(pattern), headers['Cookie']):
14-
result.append(app)
15-
if 'implies' in signatures['apps'][app]:
16-
for tech in signatures['apps'][app]['implies']:
11+
if 'Cookie' in headers:
12+
for app in signatures['apps']:
13+
if 'cookies' in signatures[app]:
14+
for pattern in signatures['apps'][app]['cookies']:
15+
if re.search(deJSON(pattern), headers['Cookie']):
1716
result.append(app)
17+
if 'implies' in signatures['apps'][app]:
18+
for tech in signatures['apps'][app]['implies']:
19+
result.append(app)
1820
for app in signatures['apps']:
1921
if 'headers' in signatures['apps'][app]:
2022
for header in signatures['apps'][app]['headers']:

0 commit comments

Comments
 (0)