Add regex to sanitize userInfo

This commit is contained in:
Rim 2023-12-25 05:19:22 -05:00
parent 135bc421d2
commit 6ef5db6ead
3 changed files with 2 additions and 1 deletions

1
clean_userInfo_regex.txt Normal file
View File

@ -0,0 +1 @@
userInfo\(|\);

View File

@ -4,4 +4,4 @@ $URL = "https://profile.callofduty.com/cod/userInfo/$COOKIE_VALUE"
$USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
$OUTPUT_FILE = "userInfo.json"
curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE
curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE