MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / pwn

Method pwn

lib/takeover/metasploit.py:661–680  ·  view source on GitHub ↗
(self, goUdf=False)

Source from the content-addressed store, hash-verified

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)

Callers 1

osPwnMethod · 0.80

Calls 4

_runMsfCliMethod · 0.95
_controlMsfCmdMethod · 0.95
debugMethod · 0.80
delRemoteFileMethod · 0.80

Tested by

no test coverage detected