From 734402e6fc55871b8c4e8a94a3644e410ba4c20b Mon Sep 17 00:00:00 2001 From: RGlintmeijer <20862757+RGlintmeijer@users.noreply.github.com> Date: Thu, 17 Aug 2023 18:24:19 +0200 Subject: [PATCH] Update _os.py Fix a crash when fetching the timezone of the netscaler when it has a configline like 'set ns param -cookieversion 1 -timezone "GMT+02:00-CEST-Europe/Amsterdam"'. --- dissect/target/plugins/os/unix/bsd/citrix/_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dissect/target/plugins/os/unix/bsd/citrix/_os.py b/dissect/target/plugins/os/unix/bsd/citrix/_os.py index 10e561496..ed701006c 100644 --- a/dissect/target/plugins/os/unix/bsd/citrix/_os.py +++ b/dissect/target/plugins/os/unix/bsd/citrix/_os.py @@ -12,7 +12,7 @@ RE_CONFIG_IP = re.compile(r"-IPAddress (?P[^ ]+) ") RE_CONFIG_HOSTNAME = re.compile(r"set ns hostName (?P[^\n]+)\n") RE_CONFIG_TIMEZONE = re.compile( - r'set ns param -timezone "GMT\+(?P[0-9]+):(?P[0-9]+)-.*-(?P.+)"' + r'set ns param.* -timezone "GMT\+(?P[0-9]+):(?P[0-9]+)-.*-(?P.+)"' ) RE_CONFIG_USER = re.compile(r"bind system user (?P[^ ]+) ") RE_LOADER_CONFIG_KERNEL_VERSION = re.compile(r'kernel="/(?P.*)"')