Skip to content

Commit b306410

Browse files
authored
Land rapid7#19227, Moodle::Login.moodle_login: fix login success verification regex
2 parents ddaa21d + 4eecb8e commit b306410

File tree

1 file changed

+1
-1
lines changed
  • lib/msf/core/exploit/remote/http/moodle

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/remote/http/moodle/login.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def moodle_login(user, pass, timeout = 20)
2323
'keep_cookies' => true
2424
}, timeout, 20) # typical redirect is 3-5, but it may do more if caching gets messed up on server
2525

26-
if !res || (res.code != 200) || !res.body.include?('<title>Dashboard</title>')
26+
if !res || (res.code != 200) || !res.body.include?('<title>Dashboard')
2727
return nil
2828
end
2929

0 commit comments

Comments
 (0)