Skip to content

Commit

Permalink
slight adjustment regex
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidsec committed Jan 11, 2024
1 parent 9a13e9c commit 35dabe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion badsecrets/modules/express_signedcookies_cs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ExpressSignedCookies_CS(BadsecretsBase):
}

def carve_regex(self):
return re.compile(r"(\w{1,64})=([^;]{4,512});.*?\1\.sig=([^;]{27,86});")
return re.compile(r"(\w{1,64})=([^;]{4,512});.*?\1\.sig=([^;]{27,86})")

def get_product_from_carve(self, regex_search):
return f"Data Cookie: [{regex_search.groups()[0]}={regex_search.groups()[1]}] Signature Cookie: [{regex_search.groups()[2]}]"
Expand Down

0 comments on commit 35dabe9

Please sign in to comment.