Skip to content

Commit 858a2f8

Browse files
committed
Fix rubocop issues
1 parent 3794285 commit 858a2f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/auxiliary/scanner/dcerpc/nrpc_enumusers.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def initialize(info = {})
3838
[
3939
OptPort.new('RPORT', [false, 'The netlogon RPC port']),
4040
OptPath.new('USER_FILE', [true, 'Path to the file containing the list of usernames to enumerate']),
41-
OptBool.new('DB_ALL_USERS', [ false, "Add all enumerated usernames to the database", false ])
41+
OptBool.new('DB_ALL_USERS', [ false, 'Add all enumerated usernames to the database', false ])
4242
]
4343
)
4444
end
@@ -55,7 +55,7 @@ def bind_to_netlogon_service
5555
end
5656

5757
def dsr_get_dc_name_ex2(username)
58-
request = Netlogon.const_get("DsrGetDcNameEx2Request").new(
58+
request = Netlogon.const_get('DsrGetDcNameEx2Request').new(
5959
computer_name: nil,
6060
account_name: username,
6161
allowable_account_control_bits: 0x200,
@@ -69,7 +69,7 @@ def dsr_get_dc_name_ex2(username)
6969
rescue Rex::Proto::DCERPC::Exceptions::Fault
7070
fail_with(Failure::UnexpectedReply, "The Netlogon RPC request failed for username: #{username}")
7171
end
72-
Netlogon.const_get("DsrGetDcNameEx2Response").read(raw_response)
72+
Netlogon.const_get('DsrGetDcNameEx2Response').read(raw_response)
7373
end
7474

7575
def report_username(domain, username)
@@ -86,7 +86,7 @@ def report_username(domain, username)
8686
module_fullname: fullname,
8787
username: username,
8888
realm_key: Metasploit::Model::Realm::Key::ACTIVE_DIRECTORY_DOMAIN,
89-
realm_value: domain,
89+
realm_value: domain
9090
}.merge(service_data)
9191

9292
login_data = {

0 commit comments

Comments
 (0)