Exemple #1
0
    def test_ProcessAndThreadFunctions(self):

        # HANDLE WINAPI GetCurrentProcess(void);
        jit.push_uint32_t(0)  # @return
        winapi.kernel32_GetCurrentProcess(jit)
        hProc = jit.cpu.EAX
        self.assertTrue(hProc)

        # DWORD WINAPI GetCurrentProcessId(void);
        jit.push_uint32_t(0)  # @return
        winapi.kernel32_GetCurrentProcessId(jit)
        dwProc = jit.cpu.EAX
        self.assertTrue(dwProc)
Exemple #2
0
    def test_ProcessAndThreadFunctions(self):

        # HANDLE WINAPI GetCurrentProcess(void);
        jit.push_uint32_t(0)      # @return
        winapi.kernel32_GetCurrentProcess(jit)
        hProc = jit.cpu.EAX
        self.assertTrue(hProc)

        # DWORD WINAPI GetCurrentProcessId(void);
        jit.push_uint32_t(0)      # @return
        winapi.kernel32_GetCurrentProcessId(jit)
        dwProc = jit.cpu.EAX
        self.assertTrue(dwProc)