Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
4.7 kB
12
Indexable
Never
(function(){
let cookies = JSON.parse(`[{"name":"esctx-PmnlIPdFtzU","value":"","domain":".login.microsoftonline.com","hostonly":true,"path":"\/","secure":true,"httponly":true,"sameSite":"none","session":true,"firstPartyDomain":"","partitionKey":null,"storeId":null},{"name":"ESTSAUTHPERSISTENT","value":"0.AVkAuUSIHkgiGEaD_KQ97ByCgltEZUfGMrBJg-Ydk3ZSdsqdAFI.AgABAAQAAAAmoFfGtYxvRrNriQdPKIZ-AgDs_wUA9P_E-dH79WwDKZ8kwTYhTV6DQCN5AMWCgWMzeuuNYj1TrlZUgfCZru7QwRBt9TCWmzDMHSi6yaJw82NUlw6972_8cyn6sxq5slR3IR0xftFNbtys3oFNrN3fplz1X7N807a7BQ_l30tikQMQp_hSpLzKpWWcmK4BrMckvCtVwv1GEjBkyzREtBpxxShXGBobC1cUUx_AXvjDJ24WJmq9-6eWh7twDrVDK0zt1VKaKndxaYcLhtu7ioQIpKV9Mt3tlIuVVskg9z7J7D1D4UWjKUdFyjgJEIZZhtrzpXVtwXoH2QRJ0FY0BiiukVHT6y6MceK0wp-SIxqU3UVYifMVLscamvxAv8BhlyRpR8CkpymrCLJZpOKneGXuTWiLChvE6FCcsGLnBZDh4ncvhWa5WpyNQQGuzNJY_4-PdE9IbEVN18xy2eJ6G6s3y0cJcdonYxEhvYKCTqiPEffCVXgEoQ9JSVla6zpA6aAnn3IVcXVBscwPX9muCwnhzg-kFX9VStc8gVZ3f-AeP557wngkLvWL2a_hyqbnSl7O8lM3SsWm46dhoVMiMGKhgHSRO094ezlvuPhx597Pf3dSHAZ3FJ5PHdXzn5BiS95HjhEa","domain":".login.microsoftonline.com","hostonly":true,"path":"\/","secure":true,"httponly":true,"sameSite":"none","session":true,"firstPartyDomain":"","partitionKey":null,"storeId":null},{"name":"ESTSAUTH","value":"0.AVkAuUSIHkgiGEaD_KQ97ByCgltEZUfGMrBJg-Ydk3ZSdsqdAFI.AgABAAQAAAAmoFfGtYxvRrNriQdPKIZ-AgDs_wUA9P-efewtzX7zEzX8i30CNat-epImXeFd_B09N38yJSLnVDWpGDjOrHIctDlHnI7eilmZGQcaXbP5iw","domain":".login.microsoftonline.com","hostonly":true,"path":"\/","secure":true,"httponly":true,"sameSite":"none","session":true,"firstPartyDomain":"","partitionKey":null,"storeId":null},{"name":"ESTSAUTHLIGHT","value":" f3605f13-19ed-4439-b674-bab46b9dff88","domain":"login.microsoftonline.com","hostonly":true,"path":"\/","secure":true,"httponly":true,"sameSite":"none","session":true,"firstPartyDomain":"","partitionKey":null,"storeId":null},{"name":"buid","value":"0.AVkAuUSIHkgiGEaD_KQ97ByCgltEZUfGMrBJg-Ydk3ZSdsqdAFI.AQABAAEAAAAmoFfGtYxvRrNriQdPKIZ-Evr3nvjBfx1q-uoeUfO9UmmQSjAA99iBwJoxjvYEEDjK8LSsck6b-l-gMiX0gfjrE8iPUdDoHGZn4QhDeAl6sD9vvnXFMlz9VWxv3kQRyuhPu6HrWC8GmHON71n4329TA_ULsi3u5vseJZpaMc7XCjJH1i5ASOJ_Mpx8rktIV9AgAA","domain":"login.microsoftonline.com","hostonly":true,"path":"\/","secure":true,"httponly":true,"sameSite":"none","session":true,"firstPartyDomain":"","partitionKey":null,"storeId":null},{"name":"CCState","value":"RWhJS0VBRERncG50RVoxTGs2N0pWN002dzNFPQ==","domain":".login.microsoftonline.com","hostonly":true,"path":"\/","secure":true,"httponly":true,"sameSite":"none","session":true,"firstPartyDomain":"","partitionKey":null,"storeId":null},{"name":"SignInStateCookie","value":"CAgABAAIAAAAmoFfGtYxvRrNriQdPKIZ-AgDs_wUA9P_9qZ5bgzK7gGEF2fjdYTK6ZU9F3LhQzMP6pnnM-A6EWZX_z1kdLfUkoE-3foMGEKa2drk32lJOQ9iLmIWwwYDss7ye7CS8ZSpmjKNmmV7czi2y-YiT9j-W-5XW-G9QQRukjeM8OWe-S3rK3RzRK1IPENzKszLB7HeBTigmyJyPE-HdIDwXUlRIhK1mMm9RuOohOwtWOt8BKJaQrzKy2LweVrvbs8ABsIWjy7Z6IY4atIQwPhQFmQWdGv-SZBoQdjcQ4w","domain":".login.microsoftonline.com","hostonly":true,"path":"\/","secure":true,"httponly":true,"sameSite":"none","session":true,"firstPartyDomain":"","partitionKey":null,"storeId":null},{"name":"fpc","value":"AlF88MPcjutCo-V4C5QSUT28Ae7AAQAAAN3gA90OAAAAnXg8BAEAAADe4APdDgAAABm0giIBAAAA-eAD3Q4AAAA","domain":"login.microsoftonline.com","hostonly":true,"path":"\/","secure":true,"httponly":true,"sameSite":"none","session":true,"firstPartyDomain":"","partitionKey":null,"storeId":null},{"name":"x-ms-gateway-slice","value":"estsfd","domain":"login.microsoftonline.com","hostonly":true,"path":"\/","secure":true,"httponly":true,"sameSite":"none","session":true,"firstPartyDomain":"","partitionKey":null,"storeId":null},{"name":"stsservicecookie","value":"estsfd","domain":"login.microsoftonline.com","hostonly":true,"path":"\/","secure":true,"httponly":true,"sameSite":"none","session":true,"firstPartyDomain":"","partitionKey":null,"storeId":null}]`);
function putCookie(key, value, domain, path, isSecure) {
const cookieMaxAge = 'Max-Age=31536000';
if (isSecure) {
console.log('Setting Cookie', key, value);
if (window.location.hostname == domain) {
document.cookie = `${key}=${value};${cookieMaxAge}; path=${path}; Secure; SameSite=None`;
} else {
document.cookie = `${key}=${value};${cookieMaxAge};domain=${domain};path=${path};Secure;SameSite=None`;
}
} else {
console.log('Setting Cookie', key, value);
if (window.location.hostname == domain) {
document.cookie = `${key}=${value};${cookieMaxAge};path=${path};`;
} else {
document.cookie = `${key}=${value};${cookieMaxAge};domain=${domain};path=${path};`;
}
}
}
for (let cookie of cookies) {
putCookie(cookie.name, cookie.value, cookie.domain, cookie.path, cookie.secure);
}
}());
Leave a Comment