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

Make tab completion work for meterpreter sessions over rpc.

git-svn-id: file:///home/svn/framework3/trunk@10905 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Matt Weeks 2010-11-04 23:01:03 +00:00
parent f517b88d9c
commit fe03497d57
2 changed files with 8 additions and 0 deletions

View File

@ -144,6 +144,11 @@ class Session < Base
{ "result" => "failure" }
end
def meterpreter_tabs(token,sid, line)
s = _valid_session(token,sid,"meterpreter")
{ "tabs" => s.tab_complete(line) }
end
def meterpreter_script(token, sid, data)
s = _valid_session(token,sid,"meterpreter")

View File

@ -90,6 +90,9 @@ class WebConsole
end
def tab_complete(cmd)
if(self.console.active_session)
return self.console.active_session.console.tab_complete(cmd)
end
self.console.tab_complete(cmd)
end