Advertisement
mikebald

pagios_actionscript

Mar 29th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package {
  2.     import flash.utils.*;
  3.     import flash.display.*;  
  4.  
  5.     public class RootMe extends Sprite {  
  6.         private static const key:string = "rootmeifyoucan";  
  7.         private const EmbeddedSWF:class;  
  8.        
  9.         public function RootMe() {
  10.             var _local2:Loader;
  11.             this.EmbeddedSWF = RootMe_EmbeddedSWF;
  12.             super();
  13.             var _local1:ByteArray = new this.EmbeddedSWF();
  14.             if (_local1.length != 0) {
  15.                 XOR(_local1, key);
  16.                 _local2 = new Loader();
  17.                 _local2.loadBytes(_local1);
  18.                 addChild(_local2);
  19.             };
  20.         }
  21.  
  22.         private static function XOR(_arg1:ByteArray, _arg2:string):void {
  23.             var _local3:number = 0;
  24.             var _local4:number = 0;
  25.             while (_local4 < _arg1.length) {
  26.                 _arg1[_local4] = (_arg1[_local4] ^ _arg2.charcodeat(_local3));
  27.                 _local3++;
  28.                 if (_local3 >= _arg2.length) {
  29.                     _local3 = 0;
  30.                 };
  31.                 _local4++;
  32.             };
  33.         }  
  34.     }
  35. }//package 
  36.  
  37. package {
  38.     import mx.core.*;  
  39.  
  40.     public class RootMe_EmbeddedSWF extends ByteArrayAsset {   }
  41. }//package
  42.  
  43. package mx.core {
  44.    public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
  45. }//package mx.core
  46.  
  47. package mx.core {  
  48.     public interface IFlexAsset {   }
  49. }//package mx.core 
  50.  
  51. package mx.core {
  52.     import flash.utils.*;  
  53.     public class ByteArrayAsset extends ByteArray implements IFlexAsset {  
  54.         mx_internal static const version:string = "4.6.0.23201";  
  55.     }
  56. }//package mx.core
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement