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

Allow APC spawn to use alternate credentials #2

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

funnybananas
Copy link

@funnybananas funnybananas commented Dec 17, 2021

Added BOFs/StaticSyscallsAPCUserSpawn/

Modified the .cna and entry.c slightly to accommodate CreateProcessWithLogonW. Thought it would be cool to emulate the native spawnas functionality, but use the direct syscalls for the injection.

Rather than add onto existing apc_spawn, I created separate static_syscalls_apc_user_spawn/shspawn, so the syntax doesn't become too cumbersome with the original. Let me know what you think.

No changes to Syscalls.h/beacon.h from the original.

Calls CreateProcessWithLogonW to create a new process with a specified DOMAIN\user, and application name.
Updated original to allow passing of correct arguments for CreateProcessWithLogonW input (LPCWSTR)
Same as original.
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

Successfully merging this pull request may close these issues.

1 participant