You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/auxiliary/admin/smb/change_password.rb
+41-16Lines changed: 41 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ def initialize(info = {})
43
43
register_options(
44
44
[
45
45
OptString.new('NEW_PASSWORD',[false,'The new password to change to',''],conditions: ['ACTION','in',%w[CHANGERESET]]),
46
-
OptString.new('NEW_NTLM',[false,'The new NTLM hash to change to. Can be either an NT hash or a colon-delimited NTLM hash',''],conditions: ['ACTION','in',%w[CHANGE_NTLMRESET_NTLM]]),
46
+
OptString.new('NEW_NTLM',[false,'The new NTLM hash to change to. Can be either an NT hash or a colon-delimited NTLM hash'],conditions: ['ACTION','in',%w[CHANGE_NTLMRESET_NTLM]],regex: /^([0-9a-fA-F]{32}:)?[0-9a-fA-F]{32}$/),
47
47
OptString.new('TARGET_USER',[false,'The user to reset the password of.'],conditions: ['ACTION','in',%w[RESETRESET_NTLM]])
0 commit comments