(self, goUdf=False)
| 659 | return True |
| 660 | |
| 661 | def pwn(self, goUdf=False): |
| 662 | if goUdf: |
| 663 | exitfunc = "thread" |
| 664 | func = self._runMsfShellcodeRemote |
| 665 | else: |
| 666 | exitfunc = "process" |
| 667 | func = self._runMsfShellcodeRemoteViaSexec |
| 668 | |
| 669 | self._runMsfCli(exitfunc=exitfunc) |
| 670 | |
| 671 | if self.connectionStr.startswith("bind"): |
| 672 | func() |
| 673 | |
| 674 | debugMsg = "Metasploit Framework command line interface exited " |
| 675 | debugMsg += "with return code %s" % self._controlMsfCmd(self._msfCliProc, func) |
| 676 | logger.debug(debugMsg) |
| 677 | |
| 678 | if not goUdf: |
| 679 | time.sleep(1) |
| 680 | self.delRemoteFile(self.shellcodeexecRemote) |
| 681 | |
| 682 | def smb(self): |
| 683 | Metasploit._initVars(self) |
no test coverage detected