Skip to content

Commit 48666f1

Browse files
committed
Land rapid7#2145, consistent datastore options
2 parents b0c74db + af1bd01 commit 48666f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/exploits/linux/http/foreman_openstack_satellite_code_exec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def initialize
4646
[
4747
Opt::RPORT(443),
4848
OptBool.new('SSL', [true, 'Use SSL', true]),
49-
OptString.new('MYUSERNAME', [true, 'Your username', 'admin']),
50-
OptString.new('MYPASSWORD', [true, 'Your password', 'changeme']),
49+
OptString.new('USERNAME', [true, 'Your username', 'admin']),
50+
OptString.new('PASSWORD', [true, 'Your password', 'changeme']),
5151
OptString.new('TARGETURI', [ true, 'The path to the application', '/']),
5252
], self.class
5353
)
@@ -59,8 +59,8 @@ def exploit
5959
'method' => 'POST',
6060
'uri' => normalize_uri(target_uri.path, 'users', 'login'),
6161
'vars_post' => {
62-
'login[login]' => datastore['MYUSERNAME'],
63-
'login[password]' => datastore['MYPASSWORD']
62+
'login[login]' => datastore['USERNAME'],
63+
'login[password]' => datastore['PASSWORD']
6464
}
6565
)
6666

0 commit comments

Comments
 (0)