Skip to content

Commit

Permalink
Adding support for WTS
Browse files Browse the repository at this point in the history
  • Loading branch information
stamparm committed Feb 11, 2019
1 parent ac0f53a commit c448bef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions data.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,14 @@
"b13e:RVZXum60OEhCWKpAYKYPkoJyWOpohM4IiUYMrmRXg1qQJbX3uhdOnthtOj+hXrAB16FcPxJPdLsXomtKaK59nui7c4RmkgI2FZjxtDtAeq6c3qA4chW1XaTC"
]
},
"wts": {
"company": "WTS",
"name": "WTS",
"regex": ">WTS\\-WAF",
"signatures": [
"e94f:RVZXum61OElCWapAYKYPkoJzWOpohM4JiUcMr2RXg1uQJLX3uhdOnthtOj+hX7AB16FcPhJPdLsXo2tKaK99n+i7c4RmkgI2FZjxtDtAeq+c3qA4chW1XKTC"
]
},
"yundun": {
"company": "Yundun",
"name": "Yundun",
Expand Down
4 changes: 2 additions & 2 deletions identYwaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
HTTPCookieProcessor = urllib2.HTTPCookieProcessor

NAME = "identYwaf"
VERSION = "1.0.76"
VERSION = "1.0.77"
BANNER = """
` __ __ `
____ ___ ___ ____ ______ `| T T` __ __ ____ _____
Expand Down Expand Up @@ -181,7 +181,7 @@ def check_payload(payload, protection_regex=GENERIC_PROTECTION_REGEX % '|'.join(
if options.string:
result = options.string in (intrusive[RAW] or "")
else:
result = intrusive[HTTPCODE] != original[HTTPCODE] or (intrusive[HTTPCODE] != 200 and intrusive[TITLE] != original[TITLE]) or (re.search(protection_regex, intrusive[HTML]) is not None and re.search(protection_regex, original[HTML]) is None) or (difflib.SequenceMatcher(a=original[HTML] or "", b=intrusive[HTML] or "").quick_ratio() < QUICK_RATIO_THRESHOLD)
result = intrusive[HTTPCODE] != original[HTTPCODE] or (intrusive[HTTPCODE] != 200 and intrusive[TITLE] != original[TITLE]) or (re.search(protection_regex, intrusive[HTML]) is not None and re.search(protection_regex, original[HTML]) is None) or (difflib.SequenceMatcher(a=original[HTML] or "", b=intrusive[HTML] or "").ratio() < QUICK_RATIO_THRESHOLD)

if not payload.isdigit():
if result:
Expand Down
Binary file added screenshots/wts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c448bef

Please sign in to comment.