Skip to content

Commit ff724d0

Browse files
committed
Deregister SMBUser
1 parent de15d1e commit ff724d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/auxiliary/admin/dcerpc/esc_update_ldap_object.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,15 @@ def initialize(info = {})
5656
)
5757
)
5858

59-
deregister_options('PFX', 'ON_BEHALF_OF', 'Session', 'SMBPass', 'SMBDomain')
59+
deregister_options('PFX', 'ON_BEHALF_OF', 'Session', 'SMBuser', 'SMBPass', 'SMBDomain')
6060

6161
register_options([
6262
OptString.new('LDAPDomain', [true, 'The domain to authenticate to']),
6363
OptString.new('LDAPUsername', [true, 'The username to authenticate with, who must have permissions to update the TARGET_USERNAME']),
6464
OptString.new('LDAPPassword', [true, 'The password to authenticate with']),
6565
OptEnum.new('UPDATE_LDAP_OBJECT', [ true, 'Either userPrincipalName or dNSHostName, Updates the necessary object of a specific user before requesting the cert.', 'userPrincipalName', %w[userPrincipalName dNSHostName] ]),
6666
OptString.new('UPDATE_LDAP_OBJECT_VALUE', [ true, 'The account name you wish to impersonate', 'Administrator']),
67-
OptString.new('TARGET_USERNAME', [true, 'The username of the target LDAP object (the victim account).'], aliases: ['SMBUser']),
68-
OptString.new('SMBUser', [true, 'The username of the target LDAP object (the victim account) which the module will request a certificate on behalf of.'])
67+
OptString.new('TARGET_USERNAME', [true, 'The username of the target LDAP object (the victim account).'], aliases: ['SMBUser'])
6968
])
7069

7170
register_advanced_options(

0 commit comments

Comments
 (0)