Rob-- / memoryjs

Read and write process memory in Node.js (Windows API functions exposed via Node bindings)
MIT License
632 stars 86 forks source link

How can I run this code via callFunction #78

Closed aolose closed 3 years ago

aolose commented 3 years ago

I try to trans a CT script to js via memoryjs ,when I run memoryjs.callFunction(handle, [], memoryjs.T_VOID, cmdAddr) I got an error:{ exitCode: 4294930433 }

code from the CT file
executeCodeEx(0, nil, cmdCall)
align 10
cmdCall:
sub rsp,38
mov rdx,cmdArgs
mov rax,cmdAddr
call [rax]
add rsp,38
movzx rax,al
ret

How can I run cmdCall via callFunction