From 68e52eb512ec97defecc777c014e67df06ee05b9 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 6 Jul 2022 12:02:25 -0400 Subject: [PATCH] Common: Add ntlm_hash_validator --- monkey/common/credentials/validators.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 monkey/common/credentials/validators.py diff --git a/monkey/common/credentials/validators.py b/monkey/common/credentials/validators.py new file mode 100644 index 000000000..3d1b74650 --- /dev/null +++ b/monkey/common/credentials/validators.py @@ -0,0 +1,6 @@ +import re + +from marshmallow import validate + +_ntlm_hash_regex = re.compile(r"^[a-fA-F0-9]{32}$") +ntlm_hash_validator = validate.Regexp(regex=_ntlm_hash_regex)