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

capturing stdout of a donut #135

Open
djn3m0 opened this issue Sep 5, 2023 · 1 comment
Open

capturing stdout of a donut #135

djn3m0 opened this issue Sep 5, 2023 · 1 comment

Comments

@djn3m0
Copy link

djn3m0 commented Sep 5, 2023

hi,

i load the donut file like so,

    void* exec = VirtualAlloc(0, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
     memcpy(exec, data, size);
    ((void(*) ())exec)();

how can i capture the output of the donut?
i tried to redirect stdout and stderr but my code after ((void(*) ())exec)() never gets executed so I cannot even tell if my stdout redirection worked or not!

i would appreaciate any help,
thanks

@djn3m0 djn3m0 closed this as completed Sep 5, 2023
@djn3m0 djn3m0 reopened this Sep 15, 2023
@djn3m0
Copy link
Author

djn3m0 commented Sep 17, 2023

I would appreciate any clue. Thanks

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