Skip to content

Commit 886ca47

Browse files
committed
Land rapid7#5650, @wchen-r7's browser autopwn 2
2 parents b31c637 + b127fdc commit 886ca47

23 files changed

+2527
-584
lines changed

data/flash_detector/flashdetector.swf

455 Bytes
Binary file not shown.
Binary file not shown.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8"/>
5+
<title>flash_detector</title>
6+
<meta name="description" content="" />
7+
8+
<script src="js/swfobject.js"></script>
9+
<script>
10+
var flashvars = {
11+
};
12+
var params = {
13+
menu: "false",
14+
scale: "noScale",
15+
allowFullscreen: "true",
16+
allowScriptAccess: "always",
17+
bgcolor: ""
18+
};
19+
var attributes = {
20+
id:"flashdetector"
21+
};
22+
swfobject.embedSWF(
23+
"flashdetector.swf",
24+
"altContent", "100%", "100%", "8.0.0",
25+
"expressInstall.swf",
26+
flashvars, params, attributes);
27+
</script>
28+
<style>
29+
html, body { height:100%; overflow:hidden; }
30+
body { margin:0; }
31+
</style>
32+
</head>
33+
<body>
34+
<div id="altContent">
35+
<h1>flash_detector</h1>
36+
<p><a href="http://www.adobe.com/go/getflashplayer">Get Adobe Flash player</a></p>
37+
</div>
38+
</body>
39+
</html>

external/source/flash_detector/bin/js/swfobject.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<project>
3+
<!-- Output SWF options -->
4+
<output>
5+
<movie disabled="False" />
6+
<movie input="" />
7+
<movie path="bin\flashdetector.swf" />
8+
<movie fps="30" />
9+
<movie width="800" />
10+
<movie height="600" />
11+
<movie version="8" />
12+
<movie background="#FFFFFF" />
13+
</output>
14+
<!-- Other classes to be compiled into your SWF -->
15+
<classpaths>
16+
<class path="src" />
17+
</classpaths>
18+
<!-- Build options -->
19+
<build>
20+
<option verbose="False" />
21+
<option strict="False" />
22+
<option infer="False" />
23+
<option useMain="True" />
24+
<option useMX="False" />
25+
<option warnUnusedImports="False" />
26+
<option traceMode="FlashConnectExtended" />
27+
<option traceFunction="" />
28+
<option libraryPrefix="" />
29+
<option excludeFile="" />
30+
<option groupClasses="False" />
31+
<option frame="1" />
32+
<option keep="True" />
33+
</build>
34+
<!-- Class files to compile (other referenced classes will automatically be included) -->
35+
<compileTargets>
36+
<compile path="src\Main.as" />
37+
</compileTargets>
38+
<!-- Assets to embed into the output SWF -->
39+
<library>
40+
<!-- example: <asset path="..." id="..." update="..." glyphs="..." mode="..." place="..." sharepoint="..." /> -->
41+
</library>
42+
<!-- Paths to exclude from the Project Explorer tree -->
43+
<hiddenPaths>
44+
<!-- example: <hidden path="..." /> -->
45+
</hiddenPaths>
46+
<!-- Executed before build -->
47+
<preBuildCommand />
48+
<!-- Executed after build -->
49+
<postBuildCommand alwaysRun="False" />
50+
<!-- Other project options -->
51+
<options>
52+
<option showHiddenPaths="False" />
53+
<option testMovie="Default" />
54+
</options>
55+
</project>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import flash.external.ExternalInterface
2+
import System.capabilities
3+
4+
class Main
5+
{
6+
7+
public static function main(swfRoot:MovieClip):Void
8+
{
9+
// entry point
10+
var app:Main = new Main();
11+
}
12+
13+
public function Main()
14+
{
15+
var version:String = getVersion()
16+
ExternalInterface.call("setFlashVersion", version)
17+
}
18+
19+
private function getVersion():String
20+
{
21+
try {
22+
var version:String = capabilities.version
23+
version = version.split(" ")[1]
24+
version = version.split(",").join(".")
25+
return version
26+
} catch (err:Error) {
27+
return ""
28+
}
29+
}
30+
31+
}

0 commit comments

Comments
 (0)