Skip to content

Commit

Permalink
fixes issue #475
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekultek committed Oct 10, 2019
1 parent 17d7e4b commit 00ae506
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/plugins/aspgeneric.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def detect(content, **kwargs):
x_powered_by = headers.get(HTTP_HEADER.X_POWERED_BY, "")
asp_header = headers.get("X-ASPNET-Version", "")
set_cookie = headers.get(HTTP_HEADER.SET_COOKIE, "")
asp_header_2 = headers.get("asp-id", "")
for detection in detection_schema:
if detection.search(content) is not None:
detected += 1
Expand All @@ -31,5 +32,7 @@ def detect(content, **kwargs):
detected += 1 if asp_header != "" else 0
if detection_schema[4].search(x_powered_by) is not None:
detected += 1
if asp_header_2 != "":
detected += 1
if detected >= 2:
return True

0 comments on commit 00ae506

Please sign in to comment.