MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / KbExecuteShellCode

Function KbExecuteShellCode

User-Bridge/API/User-Bridge.cpp:1222–1231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1220namespace KernelShells
1221{
1222 BOOL WINAPI KbExecuteShellCode(_ShellCode ShellCode, PVOID Argument, OUT OPTIONAL PULONG Result)
1223 {
1224 KB_EXECUTE_SHELL_CODE_IN Input = {};
1225 KB_EXECUTE_SHELL_CODE_OUT Output = {};
1226 Input.Address = reinterpret_cast<WdkTypes::PVOID>(ShellCode);
1227 Input.Argument = reinterpret_cast<WdkTypes::PVOID>(Argument);
1228 BOOL Status = KbSendRequest(Ctls::KbExecuteShellCode, &Input, sizeof(Input), &Output, sizeof(Output));
1229 if (Result) *Result = Output.Result;
1230 return Status;
1231 }
1232}
1233
1234namespace LoadableModules

Callers

nothing calls this directly

Calls 1

KbSendRequestFunction · 0.85

Tested by

no test coverage detected