Skip to content

Commit ef1145c

Browse files
committed
Use common code to delete non-applicable cmds.
1 parent e21ae88 commit ef1145c

File tree

1 file changed

+1
-11
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi

1 file changed

+1
-11
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/mic.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,7 @@ def commands
3535
'listen' => [ 'audio_mic_start' ]
3636
}
3737

38-
all.delete_if do |cmd, _desc|
39-
del = false
40-
reqs[cmd].each do |req|
41-
next if client.commands.include? req
42-
del = true
43-
break
44-
end
45-
del
46-
end
47-
48-
all
38+
filter_commands(all, reqs)
4939
end
5040

5141
#

0 commit comments

Comments
 (0)