Dandomi

Взлом мамаши

Nov 16th, 2022 (edited)
1,119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sleep(milliseconds) {
  2.   const date = Date.now();
  3.   let currentDate = null;
  4.   do {
  5.     currentDate = Date.now();
  6.   } while (currentDate - date < milliseconds);
  7. }
  8.  
  9. async function get_hash()
  10. {
  11.     var data = await fetch('/settings?act=blacklist',
  12.     {
  13.         headers: {"Content-Type": "text/html; charset=UTF-8"}
  14.     }
  15.     )
  16.     .then(response => response.arrayBuffer())
  17.     .then(buffer => {
  18.    
  19.         let decoder = new TextDecoder("windows-1251")
  20.         let text = decoder.decode(buffer)
  21.    
  22.         var htmlObject = document.createElement('html');
  23.         htmlObject.innerHTML = text;
  24.    
  25.         var data = htmlObject.querySelector('.settings_bl_search_wrap')?.getAttribute("data-exec");
  26.         var obj = JSON.parse(data);
  27.         var obj = JSON.parse(obj['Settings/update_options']);
  28.         return obj.blacklist_hash;
  29.     })
  30.     .catch(error => { console.error(error); return false;});
  31.     return await data;
  32.    
  33. }
  34.  
  35. async function post_r(hash, id)
  36. {
  37.     sleep(9000);
  38.     fetch(
  39.     `https://vk.com/al_settings.php?act=search_blacklist&al=1&hash=${hash}&query=${id}`
  40.     , {
  41.       method: "post",
  42.       headers: {
  43.         'Accept': 'application/json',
  44.         'Content-Type': 'application/json'
  45.       }
  46.     })
  47.     .then(response => {
  48.         if (!response.ok) {
  49.           throw new Error('Network response was not ok.')
  50.         }
  51.         response.text;
  52.       })
  53.         .then(result => {
  54.             console.log("Идет взлом твой мамаши");
  55.         if (id<2000003000)
  56.                 post_r(hash,id+1)
  57.         else
  58.             console.log("Твоя мать взломана");
  59.         })
  60.         .catch(console.error)
  61. }
  62.  
  63. async function get_bonus()
  64. {
  65.     var hash = await get_hash();
  66.     var id = 2000000001;
  67.  
  68.     post_r(hash, id)
  69. }
  70.  
  71. get_bonus();
Advertisement
Add Comment
Please, Sign In to add comment