Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failed on 64-bit #4

Open
hsxfddos opened this issue Apr 18, 2024 · 0 comments
Open

Test failed on 64-bit #4

hsxfddos opened this issue Apr 18, 2024 · 0 comments

Comments

@hsxfddos
Copy link

I used the sRID project you modified to generate an x64 payload, and then I used the following code to run it, which caused a crash. The 32-bit test was successful.

BYTE* ttt = (BYTE*)VirtualAlloc(NULL, dwfilesize + 500 * 1024 + 1024 * 1024, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE);
memset(ttt, 0, dwfilesize + 500 * 1024 + 1024 * 1024);

RtlMoveMemory(ttt, fileContent, dwfilesize);

typedef UINT_PTR(WINAPI* RDI)();



RDI rdi = (RDI)(ttt);
HMODULE baseAddress = (HMODULE)rdi(); // Excute DLL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant