mirror of
https://github.com/S3cur3Th1sSh1t/NimSyscallPacker
synced 2026-06-11 09:59:09 +00:00
Mutexoneshot for main
This commit is contained in:
@@ -3821,7 +3821,7 @@ proc EnumWindowsProc(enumhwnd: HWND, lParam: LPARAM): BOOL {.stdcall.} =
|
||||
"""
|
||||
|
||||
|
||||
let MainStub * = """
|
||||
let * = """
|
||||
|
||||
when not defined(DInvoke):
|
||||
when defined(unhook):
|
||||
@@ -4125,7 +4125,12 @@ if(threadless):
|
||||
if(conhostinject):
|
||||
stub.add(conhostinjectenumstubs)
|
||||
|
||||
stub.add(MainStub)
|
||||
if (not mutexoneshot):
|
||||
stub.add(MainStub)
|
||||
else:
|
||||
var mutexname = rndStr(8)
|
||||
var newMainStub = MainStub.replace("REPLACEMUTEX", mutexname)
|
||||
stub.add(newMainStub)
|
||||
|
||||
stub.add(getRandStub())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user