Fix for properly backgrounding shell sessions over RPC.
git-svn-id: file:///home/svn/framework3/trunk@10740 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
f997b37245
commit
1a03e528fa
|
@ -105,7 +105,7 @@ class WebConsole
|
|||
def session_detach
|
||||
if(self.console.active_session)
|
||||
#background interactive meterpreter channel
|
||||
if(self.console.active_session.channels)
|
||||
if(self.console.active_session.respond_to?('channels'))
|
||||
self.console.active_session.channels.each_value do |ch|
|
||||
if(ch.respond_to?('interacting') && ch.interacting)
|
||||
ch.detach()
|
||||
|
@ -122,7 +122,7 @@ class WebConsole
|
|||
def session_kill
|
||||
if(self.console.active_session)
|
||||
#close interactive meterpreter channel
|
||||
if(self.console.active_session.channels)
|
||||
if(self.console.active_session.respond_to?('channels'))
|
||||
self.console.active_session.channels.each_value do |ch|
|
||||
if(ch.respond_to?('interacting') && ch.interacting)
|
||||
ch.close()
|
||||
|
|
Loading…
Reference in New Issue