Skip to content

Commit 894ed49

Browse files
committed
Add help where appropriate
1 parent 18e69b8 commit 894ed49

File tree

1 file changed

+12
-0
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher

1 file changed

+12
-0
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/kiwi.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,24 @@ def cmd_kiwi_cmd(*args)
8484
def cmd_dcsync(*args)
8585
return unless check_is_domain_user
8686

87+
if args.length != 1
88+
print_line('Usage: dcsync <DOMAIN\user>')
89+
print_line
90+
return
91+
end
92+
8793
print_line(client.kiwi.dcsync(args[0]))
8894
end
8995

9096
def cmd_dcsync_ntlm(*args)
9197
return unless check_is_domain_user
9298

99+
if args.length != 1
100+
print_line('Usage: dcsync_ntlm <DOMAIN\user>')
101+
print_line
102+
return
103+
end
104+
93105
user = args[0]
94106
result = client.kiwi.dcsync_ntlm(user)
95107
if result

0 commit comments

Comments
 (0)