Skip to content

Commit 2f50374

Browse files
committed
Add SRVHOST tab completion
A trivial update to @jlee-r7's code.
1 parent 421ed38 commit 2f50374

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2989,7 +2989,7 @@ def option_values_dispatch(o, str, words)
29892989
option_values_target_addrs().each do |addr|
29902990
res << addr
29912991
end
2992-
when 'LHOST'
2992+
when 'LHOST', 'SRVHOST'
29932993
rh = self.active_module.datastore['RHOST'] || framework.datastore['RHOST']
29942994
if rh and not rh.empty?
29952995
res << Rex::Socket.source_address(rh)

0 commit comments

Comments
 (0)