go-shellcode icon indicating copy to clipboard operation
go-shellcode copied to clipboard

RtlCopyMemory does not work in GOARCH=386

Open aus opened this issue 5 years ago • 0 comments

You can use memcpy via msvcrt.dll instead which works on amd64 and 386.

msvcrt := windows.NewLazyDLL("msvcrt")
memcpy := msvcrt.NewProc("memcpy")

This probably also applies to ExecuteShellcodeSelf in Merlin.

aus avatar Jun 03 '20 03:06 aus