Fix for properly backgrounding shell sessions over RPC.

git-svn-id: file:///home/svn/framework3/trunk@10740 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Weeks 2010-10-19 00:15:37 +00:00
parent f997b37245
commit 1a03e528fa
1 changed files with 2 additions and 2 deletions

View File

@ -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()