Skip to content

Commit ccf677a

Browse files
committed
land rapid7#3978, Fixes rapid7#3973, Wrong datastore option URI in glassfish_login
2 parents 392b3bc + df0d4f9 commit ccf677a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/auxiliary/scanner/http/glassfish_login.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def initialize
3939

4040
register_options(
4141
[
42+
# There is no TARGETURI because when Glassfish is installed, the path is /
4243
Opt::RPORT(4848),
43-
OptString.new('TARGETURI', [true, 'The URI path of the GlassFish Server', '/']),
4444
OptString.new('USERNAME',[true, 'A specific username to authenticate as','admin']),
4545
OptBool.new('SSL', [false, 'Negotiate SSL for outgoing connections', false]),
4646
OptEnum.new('SSLVersion', [false, 'Specify the version of SSL that should be used', 'TLS1', ['SSL2', 'SSL3', 'TLS1']])
@@ -97,7 +97,6 @@ def init_loginscanner(ip)
9797
@scanner = Metasploit::Framework::LoginScanner::Glassfish.new(
9898
host: ip,
9999
port: rport,
100-
uri: datastore['URI'],
101100
proxies: datastore["PROXIES"],
102101
cred_details: @cred_collection,
103102
stop_on_success: datastore['STOP_ON_SUCCESS'],

0 commit comments

Comments
 (0)