Skip to content

Commit f33e994

Browse files
committed
Delete anything related to configuring/saving username
1 parent ad107a2 commit f33e994

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/auxiliary/scanner/redis/redis_login.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def initialize(info = {})
3737
], self.class)
3838

3939
# redis does not have an username, there's only password
40-
deregister_options('USERNAME', 'USER_AS_PASS', 'USERPASS_FILE', 'USER_FILE', 'DB_ALL_USERS')
40+
deregister_options('USERNAME', 'USER_AS_PASS', 'USERPASS_FILE', 'USER_FILE', 'DB_ALL_USERS', 'DB_ALL_CREDS')
4141
end
4242

4343
def run_host(ip)
@@ -70,6 +70,7 @@ def run_host(ip)
7070

7171
case result.status
7272
when Metasploit::Model::Login::Status::SUCCESSFUL
73+
credential_data.delete(:username) # This service uses no username
7374
credential_core = create_credential(credential_data)
7475
credential_data[:core] = credential_core
7576
create_credential_login(credential_data)

0 commit comments

Comments
 (0)