Skip to content

Commit 7e7e025

Browse files
committed
Fix tab completion for post actions
1 parent 238a30a commit 7e7e025

File tree

1 file changed

+4
-4
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+4
-4
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ def cmd_set_tabs(str, words)
20092009
res << 'ENCODER'
20102010
end
20112011

2012-
if (mod.auxiliary?)
2012+
if (mod.auxiliary? or mod.post?)
20132013
res << "ACTION"
20142014
end
20152015

@@ -2721,8 +2721,8 @@ def tab_complete_option(str, words)
27212721
return option_values_encoders() if opt.upcase == 'StageEncoder'
27222722
end
27232723

2724-
# Well-known option names specific to auxiliaries
2725-
if (mod.auxiliary?)
2724+
# Well-known option names specific to auxiliaries and posts
2725+
if (mod.auxiliary? or mod.post?)
27262726
return option_values_actions() if opt.upcase == 'ACTION'
27272727
end
27282728

@@ -2869,7 +2869,7 @@ def option_values_targets
28692869

28702870

28712871
#
2872-
# Provide valid action options for the current auxiliary module
2872+
# Provide valid action options for the current module
28732873
#
28742874
def option_values_actions
28752875
res = []

0 commit comments

Comments
 (0)