Skip to content

Commit 312ff1a

Browse files
author
jvazquez-r7
committed
Delete period from regular expressions
1 parent 04eed49 commit 312ff1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/unix/webapp/joomla_media_upload_exec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def check
7171
res = get_upload_form
7272

7373
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/
7575
print_status("#{peer} - Joomla Media Manager Found but authentication required")
7676
return Exploit::CheckCode::Detected
7777
elsif res.body =~ /<form action="(.*)" id="uploadForm"/
@@ -180,7 +180,7 @@ def exploit
180180
print_status("#{peer} - Checking Access to Media Component...")
181181
res = get_upload_form
182182

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/
184184
print_status("#{peer} - Authentication required... Proceeding...")
185185

186186
if @username.empty? or @password.empty?

0 commit comments

Comments
 (0)