From e6e48c55569d5b882a72647c22924eff606b78cd Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 22 Oct 2010 18:23:46 +0000 Subject: [PATCH] fix for Bug #204 --- lib/takeover/metasploit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/takeover/metasploit.py b/lib/takeover/metasploit.py index 8d559f8a7..4ddbd48e6 100644 --- a/lib/takeover/metasploit.py +++ b/lib/takeover/metasploit.py @@ -371,14 +371,14 @@ class Metasploit: logger.info(infoMsg) logger.debug("executing local command: %s" % self.__cliCmd) - self.__msfCliProc = execute(self.__cliCmd, shell=True, stdin=PIPE, stdout=PIPE) + self.__msfCliProc = execute(self.__cliCmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE) def __runMsfConsole(self): infoMsg = "running Metasploit Framework 3 console locally, wait.." logger.info(infoMsg) logger.debug("executing local command: %s" % self.__consoleCmd) - self.__msfConsoleProc = execute(self.__consoleCmd, shell=True, stdin=PIPE, stdout=PIPE) + self.__msfConsoleProc = execute(self.__consoleCmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE) def __runMsfShellcodeRemote(self): infoMsg = "running Metasploit Framework 3 shellcode "