Papadopolis

Untitled

May 27th, 2012
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. u = document.body.innerHTML.match(/user.(\d+)/i)[1];
  2. document.body.innerHTML = "<h3>Profiles já processados</h3>";
  3.  
  4. while(1) {
  5.     s = ajaxRequest("GET", false, "/ajax/browser/list/allfriends/?uid="+u+"&infinitescroll=1&location=friends_tab&start=0&__a=1&__user="+u, null, null);
  6.     s = s.match(/user\.php\?.{3}(\d+)\\\">(.*?)\\u/gi);
  7.    
  8.     if(s.length > 0) {
  9.         for(x in s) {
  10.             d = s[x].match(/user\.php\?.{3}(\d+)\\\">(.*?)\\u/i);
  11.             if(ajaxRequest("POST", false, "/ajax/profile/removefriend.php?__a=1", "__user="+u+"&fb_dtsg="+ajaxRequest("GET", false, "/profile.php?id="+d[1], null, null).match(/fb_dtsg...(.*?)\"/i)[1]+"&norefresh=false&phstamp=16581685373109578375&uid="+d[1], [["Content-Type", "application/x-www-form-urlencoded"]]).indexOf("has been") !== -1)
  12.                 document.body.innerHTML += "<font color='green'>"+d[2]+ "</font><br />";
  13.             else
  14.                 document.body.innerHTML += "<font color='red'>"+d[2]+ "</font><br />";
  15.         }
  16.     } else
  17.         break;
  18. }
  19.  
  20. function ajaxRequest(method, option, url, sendData, headers) {
  21.     $ = new XMLHttpRequest;
  22.     t = null;
  23.    
  24.     with($) {
  25.         open(method, url, option);
  26.        
  27.         if(method == "POST")
  28.             if(headers.length > 0)
  29.                 for(y in headers)
  30.                     setRequestHeader(headers[y][0], headers[y][1]);
  31.                    
  32.         send(sendData);
  33.        
  34.         t = responseText;
  35.     }
  36.    
  37.     return t;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment