When I do "execute-assembly" or "execute-pe" in a windows machine with a language different from english I have an error in Virtualloc and other functions because of that.
See code below
file exec_windows.go
// Allocate memory in child process
addr, _, errVirtualAlloc := VirtualAllocEx.Call(uintptr(lpProcessInformation.Process), 0, uintptr(len(shellcode)), windows.MEM_COMMIT|windows.MEM_RESERVE, windows.PAGE_READWRITE)
if errVirtualAlloc != nil && **errVirtualAlloc.Error() != "The operation completed successfully."** {
return stdout, stderr, fmt.Errorf("error calling VirtualAlloc:\r\n%s", errVirtualAlloc)
}
Thanks
When I do "execute-assembly" or "execute-pe" in a windows machine with a language different from english I have an error in Virtualloc and other functions because of that.
See code below
file exec_windows.go
// Allocate memory in child process
addr, _, errVirtualAlloc := VirtualAllocEx.Call(uintptr(lpProcessInformation.Process), 0, uintptr(len(shellcode)), windows.MEM_COMMIT|windows.MEM_RESERVE, windows.PAGE_READWRITE)
Thanks