Skip to content

error when executing "execute-assembly" or "execute-pe"  #24

@OscarAGracia

Description

@OscarAGracia

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions