mirror of
https://github.com/HolographicHat/Yae.git
synced 2025-12-16 03:18:12 +08:00
disable marshalling
This commit is contained in:
@@ -45,7 +45,7 @@ public static class Injector {
|
|||||||
return new Win32Exception().PrintMsgAndReturnErrCode("WriteProcessMemory fail");
|
return new Win32Exception().PrintMsgAndReturnErrCode("WriteProcessMemory fail");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var lpStartAddress = pLoadLibrary.CreateDelegate<LPTHREAD_START_ROUTINE>();
|
var lpStartAddress = (delegate* unmanaged[Stdcall]<void*, uint>)pLoadLibrary.Value; //THREAD_START_ROUTINE
|
||||||
var hThread = Native.CreateRemoteThread(hProc, default, 0, lpStartAddress, pBase, 0);
|
var hThread = Native.CreateRemoteThread(hProc, default, 0, lpStartAddress, pBase, 0);
|
||||||
if (hThread.IsNull) {
|
if (hThread.IsNull) {
|
||||||
var e = new Win32Exception();
|
var e = new Win32Exception();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://aka.ms/CsWin32.schema.json",
|
"$schema": "https://aka.ms/CsWin32.schema.json",
|
||||||
"className": "Native",
|
"className": "Native",
|
||||||
"allowMarshaling": true,
|
"allowMarshaling": false,
|
||||||
"public": true
|
"public": true
|
||||||
}
|
}
|
||||||
@@ -1,21 +1,21 @@
|
|||||||
CreateProcess
|
CloseClipboard
|
||||||
|
CreateProcess
|
||||||
|
CreateRemoteThread
|
||||||
|
EmptyClipboard
|
||||||
|
GetConsoleMode
|
||||||
|
GetDC
|
||||||
|
GetDeviceCaps
|
||||||
GetModuleHandle
|
GetModuleHandle
|
||||||
GetProcAddress
|
GetProcAddress
|
||||||
VirtualAllocEx
|
|
||||||
WriteProcessMemory
|
|
||||||
CreateRemoteThread
|
|
||||||
VirtualFreeEx
|
|
||||||
WaitForSingleObject
|
|
||||||
OpenClipboard
|
|
||||||
EmptyClipboard
|
|
||||||
GlobalLock
|
|
||||||
SetClipboardData
|
|
||||||
GlobalUnlock
|
|
||||||
CloseClipboard
|
|
||||||
GetStdHandle
|
GetStdHandle
|
||||||
GetConsoleMode
|
GlobalLock
|
||||||
|
GlobalUnlock
|
||||||
|
OpenClipboard
|
||||||
|
ResumeThread
|
||||||
|
SetClipboardData
|
||||||
SetConsoleMode
|
SetConsoleMode
|
||||||
TerminateProcess
|
TerminateProcess
|
||||||
ResumeThread
|
VirtualAllocEx
|
||||||
GetDeviceCaps
|
VirtualFreeEx
|
||||||
GetDC
|
WaitForSingleObject
|
||||||
|
WriteProcessMemory
|
||||||
Reference in New Issue
Block a user