Merge pull request #126 from projectdiscovery/iceman-regex-fix

Regex issues fix by simplifying and fixing some edge cases
patch-1
Ice3man 2020-06-22 08:36:29 -07:00 committed by GitHub
commit e9c23dffe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -13,5 +13,5 @@ requests:
matchers:
- type: regex
regex:
- "(^Set-Cookie:|;(| ))( |)crlfinjection=crlfinjection($|;)"
- '(?m)^(?:Set-Cookie\s*?:(?:\s*?|.*?;\s*?))(crlfinjection=crlfinjection)(?:\s*?)(?:$|;)'
part: header

View File

@ -16,5 +16,5 @@ requests:
matchers:
- type: regex
regex:
- "^Location\\:(| *| (http|https)\\:\\/\\/| *\\/\\/| [a-zA-Z]*\\.| (http|https)\\:\\/\\/[a-zA-Z]*\\.)evil\\.com"
- '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_]*\.)?evil\.com(?:\s*?)$'
part: header