Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6e48c5

Browse files
committed
fix for Bug #204
1 parent 1288def commit e6e48c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/takeover/metasploit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,14 @@ def __runMsfCli(self, exitfunc):
371371
logger.info(infoMsg)
372372

373373
logger.debug("executing local command: %s" % self.__cliCmd)
374-
self.__msfCliProc = execute(self.__cliCmd, shell=True, stdin=PIPE, stdout=PIPE)
374+
self.__msfCliProc = execute(self.__cliCmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
375375

376376
def __runMsfConsole(self):
377377
infoMsg = "running Metasploit Framework 3 console locally, wait.."
378378
logger.info(infoMsg)
379379

380380
logger.debug("executing local command: %s" % self.__consoleCmd)
381-
self.__msfConsoleProc = execute(self.__consoleCmd, shell=True, stdin=PIPE, stdout=PIPE)
381+
self.__msfConsoleProc = execute(self.__consoleCmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
382382

383383
def __runMsfShellcodeRemote(self):
384384
infoMsg = "running Metasploit Framework 3 shellcode "

0 commit comments

Comments
 (0)