Skip to content

Commit

Permalink
update for ASP generic (issue #713)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekultek committed Feb 27, 2020
1 parent f77b37f commit 43d9a03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions content/plugins/aspgeneric.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ def detect(content, **kwargs):
detection_schema = (
re.compile(r"this.generic.403.error.means.that.the.authenticated", re.I),
re.compile(r"request.could.not.be.understood", re.I),
re.compile(r"potentially.dangerous.request", re.I),
re.compile(r"<.+>a.potentially.dangerous.request(.querystring)?.+", re.I),
re.compile(r"runtime.error", re.I),
re.compile(r".>a.potentially.dangerous.request.path.value.was.detected.from.the.client+", re.I),
re.compile(r"asp.net.sessionid", re.I),
re.compile(r"errordocument.to.handle.the.request", re.I),
re.compile(r"an.application.error.occurred.on.the.server", re.I),
re.compile(r"error.log.record.number", re.I),
re.compile(r"error.page.might.contain.sensitive.information", re.I)
re.compile(r"error.page.might.contain.sensitive.information", re.I),
re.compile(r"<.+>server.error.in.'/'.application.+", re.I),
re.compile("\basp.net\b", re.I)
)
x_powered_by = headers.get(HTTP_HEADER.X_POWERED_BY, "")
asp_header = headers.get("X-ASPNET-Version", "")
Expand All @@ -33,7 +35,7 @@ def detect(content, **kwargs):
if detection.search(set_cookie) is not None:
detected += 1
detected += 1 if asp_header != "" else 0
if detection_schema[4].search(x_powered_by) is not None:
if detection_schema[4].search(x_powered_by) is not None or x_powered_by == "ASP.NET":
detected += 1
if asp_header_2 != "":
detected += 1
Expand Down
2 changes: 1 addition & 1 deletion lib/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
pass

# version number <major>.<minor>.<commit>
VERSION = "2.0"
VERSION = "2.0.1"

# version string
VERSION_TYPE = "($dev)" if VERSION.count(".") > 1 else "($stable)"
Expand Down

0 comments on commit 43d9a03

Please sign in to comment.