Skip to content

Commit d18224e

Browse files
committed
Correct capitilzation of GitLab
1 parent 25840c4 commit d18224e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/metasploit/framework/login_scanner/gitlab.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
module Metasploit
44
module Framework
55
module LoginScanner
6-
# Gitlab login scanner
7-
class Gitlab < HTTP
6+
# GitLab login scanner
7+
class GitLab < HTTP
88
# Inherit LIKELY_PORTS,LIKELY_SERVICE_NAMES, and REALM_KEY from HTTP
99
CAN_GET_SESSION = false
1010
DEFAULT_PORT = 80
@@ -53,7 +53,7 @@ def attempt_login(credential)
5353
elsif res.body.include? 'user[login]'
5454
user_field = 'user[login]'
5555
else
56-
fail RuntimeError, 'Not a valid Gitlab login page'
56+
fail RuntimeError, 'Not a valid GitLab login page'
5757
end
5858

5959
local_session_cookie = res.get_cookies.scan(/(_gitlab_session=[A-Za-z0-9%-]+)/).flatten[0]

modules/auxiliary/scanner/http/gitlab_login.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Metasploit3 < Msf::Auxiliary
1515

1616
def initialize
1717
super(
18-
'Name' => 'Gitlab Login Utility',
19-
'Description' => 'This module attempts to login to a Gitlab instance using a specific user/pass.',
18+
'Name' => 'GitLab Login Utility',
19+
'Description' => 'This module attempts to login to a GitLab instance using a specific user/pass.',
2020
'Author' => [ 'Ben Campbell' ],
2121
'License' => MSF_LICENSE
2222
)
@@ -26,7 +26,7 @@ def initialize
2626
Opt::RPORT(80),
2727
OptString.new('USERNAME', [ true, 'The username to test', 'root' ]),
2828
OptString.new('PASSWORD', [ true, 'The password to test', '5iveL!fe' ]),
29-
OptString.new('TARGETURI', [true, 'The path to Gitlab', '/'])
29+
OptString.new('TARGETURI', [true, 'The path to GitLab', '/'])
3030
], self.class)
3131

3232
register_autofilter_ports([ 80, 443 ])
@@ -43,11 +43,11 @@ def run_host(ip)
4343
)
4444

4545
if res && res.body && res.body.include?('user[email]')
46-
vprint_status("#{peer} - Gitlab v5 login page")
46+
vprint_status("#{peer} - GitLab v5 login page")
4747
elsif res && res.body && res.body.include?('user[login]')
48-
vprint_status("#{peer} - Gitlab v7 login page")
48+
vprint_status("#{peer} - GitLab v7 login page")
4949
else
50-
vprint_error('Not a valid Gitlab login page')
50+
vprint_error('Not a valid GitLab login page')
5151
return
5252
end
5353

@@ -61,7 +61,7 @@ def run_host(ip)
6161
user_as_pass: datastore['USER_AS_PASS']
6262
)
6363

64-
scanner = Metasploit::Framework::LoginScanner::Gitlab.new(
64+
scanner = Metasploit::Framework::LoginScanner::GitLab.new(
6565
configure_http_login_scanner(
6666
cred_details: cred_collection,
6767
stop_on_success: datastore['STOP_ON_SUCCESS'],

0 commit comments

Comments
 (0)