@@ -38,7 +38,7 @@ def initialize(info = {})
38
38
[
39
39
OptPort . new ( 'RPORT' , [ false , 'The netlogon RPC port' ] ) ,
40
40
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 ] )
42
42
]
43
43
)
44
44
end
@@ -55,7 +55,7 @@ def bind_to_netlogon_service
55
55
end
56
56
57
57
def dsr_get_dc_name_ex2 ( username )
58
- request = Netlogon . const_get ( " DsrGetDcNameEx2Request" ) . new (
58
+ request = Netlogon . const_get ( ' DsrGetDcNameEx2Request' ) . new (
59
59
computer_name : nil ,
60
60
account_name : username ,
61
61
allowable_account_control_bits : 0x200 ,
@@ -69,7 +69,7 @@ def dsr_get_dc_name_ex2(username)
69
69
rescue Rex ::Proto ::DCERPC ::Exceptions ::Fault
70
70
fail_with ( Failure ::UnexpectedReply , "The Netlogon RPC request failed for username: #{ username } " )
71
71
end
72
- Netlogon . const_get ( " DsrGetDcNameEx2Response" ) . read ( raw_response )
72
+ Netlogon . const_get ( ' DsrGetDcNameEx2Response' ) . read ( raw_response )
73
73
end
74
74
75
75
def report_username ( domain , username )
@@ -86,7 +86,7 @@ def report_username(domain, username)
86
86
module_fullname : fullname ,
87
87
username : username ,
88
88
realm_key : Metasploit ::Model ::Realm ::Key ::ACTIVE_DIRECTORY_DOMAIN ,
89
- realm_value : domain ,
89
+ realm_value : domain
90
90
} . merge ( service_data )
91
91
92
92
login_data = {
0 commit comments