Make tab completion work for meterpreter sessions over rpc.
git-svn-id: file:///home/svn/framework3/trunk@10905 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
f517b88d9c
commit
fe03497d57
|
@ -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")
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue