Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further IIS parsing improvements #4921

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions plaso/parsers/text_plugins/iis.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,24 @@ class WinIISTextPlugin(interface.TextPlugin):
# "domain\user$", "domain/user", "user@domain" or "-" for an anonymous user.
_USERNAME = pyparsing.Word(pyparsing.alphanums + '-.\\$@/') | _BLANK

_URI_SAFE_CHARACTERS = '/.?&+;_=()-:,%'
_URI_SAFE_CHARACTERS = '/.?&+;_=()-:,%*~|[]<>{}$\'"!`#À¯Ã§¡@\\'

_URI = pyparsing.Word(pyparsing.alphanums + _URI_SAFE_CHARACTERS) | _BLANK

_URI_STEM = (pyparsing.Word(
pyparsing.alphanums + _URI_SAFE_CHARACTERS + '$') | _BLANK)
pyparsing.alphanums + _URI_SAFE_CHARACTERS) | _BLANK)

_UA = pyparsing.Word(
pyparsing.alphanums + _URI_SAFE_CHARACTERS + '[]') | _BLANK
pyparsing.alphanums + _URI_SAFE_CHARACTERS) | _BLANK

_COOKIE = pyparsing.Word(
pyparsing.alphanums + _URI_SAFE_CHARACTERS + '@{}"\\') | _BLANK
pyparsing.alphanums + _URI_SAFE_CHARACTERS) | _BLANK

# Per https://blogs.iis.net/nazim/use-of-special-characters-like-in-an-iis-url
# IIS does not require that a query comply with RFC1738 restrictions on valid
# URI characters
_QUERY = (pyparsing.Word(
pyparsing.alphanums + _URI_SAFE_CHARACTERS + '{}|\\^~[]`\'"<>@$') |
pyparsing.alphanums + _URI_SAFE_CHARACTERS + '^') |
_BLANK)

_DATE = (
Expand Down
Loading
Loading