File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/exploits/unix/webapp Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def check
71
71
res = get_upload_form
72
72
73
73
if res and res . code == 200
74
- if res . body =~ /You are not authorised to view this resource. /
74
+ if res . body =~ /You are not authorised to view this resource/
75
75
print_status ( "#{ peer } - Joomla Media Manager Found but authentication required" )
76
76
return Exploit ::CheckCode ::Detected
77
77
elsif res . body =~ /<form action="(.*)" id="uploadForm"/
@@ -180,7 +180,7 @@ def exploit
180
180
print_status ( "#{ peer } - Checking Access to Media Component..." )
181
181
res = get_upload_form
182
182
183
- if res and res . code == 200 and res . headers [ 'Set-Cookie' ] and res . body =~ /You are not authorised to view this resource. /
183
+ if res and res . code == 200 and res . headers [ 'Set-Cookie' ] and res . body =~ /You are not authorised to view this resource/
184
184
print_status ( "#{ peer } - Authentication required... Proceeding..." )
185
185
186
186
if @username . empty? or @password . empty?
You can’t perform that action at this time.
0 commit comments