jkulvich

Untitled

Mar 12th, 2020
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (async () => {
  2.  
  3.     let dislike = async (token, id) => {
  4.         let resp = await fetch(`https://backlog.wylsa.stream/tasks/${id}/user_update`, {
  5.             "credentials": "include",
  6.             "headers": {
  7.                 "accept": "application/json, text/javascript, */*; q=0.01",
  8.                 "accept-language": "ru,en;q=0.9",
  9.                 "cache-control": "no-cache",
  10.                 "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
  11.                 "pragma": "no-cache",
  12.                 "sec-fetch-dest": "empty",
  13.                 "sec-fetch-mode": "cors",
  14.                 "sec-fetch-site": "same-origin",
  15.                 "x-csrf-token": token,
  16.                 "x-requested-with": "XMLHttpRequest",
  17.             },
  18.             "referrer": `https://backlog.wylsa.stream/statuses/${id}`,
  19.             "referrerPolicy": "strict-origin-when-cross-origin",
  20.             "body": `task%5Bid%5D=${id}&task%5Blikes%5D=none&task%5Bdislikes%5D=add`,
  21.             "method": "PUT",
  22.             "mode": "cors",
  23.         });
  24.         return resp.ok
  25.     }
  26.  
  27.     let token = `+jj/Batg3jCt5/0CRkIDHKDZi6sxU0dvGG7JjylnDhB5idtxgymcfAgxDXDWfbcDmn41wHDXFtT6cOjSGhn0JA==`
  28.    
  29.     let dislikes = 0;
  30.     for (;;) {
  31.         await dislike(token, 1)
  32.         dislikes++
  33.         console.log('disliked:', dislikes)
  34.     }
  35.  
  36. })()
RAW Paste Data