Skip to content

Commit

Permalink
Remove the resource during cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HD Moore committed Mar 8, 2012
1 parent b4e0daf commit 86fc458
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/exploits/windows/browser/adobe_flash_mp4_cprt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def on_request_uri(cli, request)
html = html.gsub(/^\t\t/, '')

#
# "/test.mp4" is currently hard-coded in the swf file, so we ned to add to resource
# "/test.mp4" is currently hard-coded in the swf file, so we need to add to resource
#
proc = Proc.new do |cli, req|
on_request_uri(cli, req)
Expand All @@ -260,6 +260,11 @@ def on_request_uri(cli, request)
send_response(cli, html, {'Content-Type'=>'text/html'})
end

def cleanup
remove_resource('/test.mp4') rescue nil
super
end

def exploit
@swf = create_swf
super
Expand Down

0 comments on commit 86fc458

Please sign in to comment.