1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

Ensure tab completion in HWBridge sessions works as expected.

This commit is contained in:
Pearce Barry 2017-12-15 12:19:26 -06:00
parent a2930935ba
commit 084dc4470d
No known key found for this signature in database
GPG Key ID: 0916F4DEA5C5DE0A
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# -*- coding: binary -*-
require 'msf/base'
require 'msf/base/sessions/scriptable'
require 'rex/post/hwbridge'
module Msf
@ -24,6 +24,7 @@ class HWBridge < Rex::Post::HWBridge::Client
# This interface supports interactive commands.
#
include Msf::Session::Interactive
include Msf::Session::Scriptable
#
# Initialize the HWBridge console

View File

@ -414,11 +414,11 @@ class Console::CommandDispatcher::Core
if !words[1] || !words[1].match(/^\//)
begin
if msf_loaded?
tabs << tab_complete_postmods
tabs = tab_complete_postmods
end
[ # We can just use Meterpreters script path
::Msf::Sessions::Meterpreter.script_base,
::Msf::Sessions::Meterpreter.user_script_base
::Msf::Sessions::HWBridge.script_base,
::Msf::Sessions::HWBridge.user_script_base
].each do |dir|
next unless ::File.exist? dir
tabs += ::Dir.new(dir).find_all { |e|