icyguider / Nimcrypt2

.NET, PE, & Raw Shellcode Packer/Loader Written in Nim
GNU General Public License v3.0
751 stars 120 forks source link

Stub compilation failed! Check stub for errors #18

Closed 0xmk4y closed 1 year ago

0xmk4y commented 1 year ago

Everything works fine yesterday, now i'm getting this error. I'v tried to recompile nimcrypt and change the spoofing process. still same error

[+] Using svchost.exe for shellcode injection [+] NimlineWhispers2 enabled [+] String encryption disabled [+] Sandbox checks enabled [+] Unhooking ntdll.dll enabled [+] PPID spoofing enabled [+] Verbose messages disabled [+] Syscall name randomization enabled Hint: used config file '/home/mk/.choosenim/toolchains/nim-2.0.0/config/nim.cfg' [Conf] Hint: used config file '/etc/nim/config.nims' [Conf] .................................................................................................................................................................................................................... /opt/Nimcrypt2/stub.nim(284, 11) template/generic instantiation of inject from here /opt/Nimcrypt2/stub.nim(98, 24) Error: type mismatch Expression: CreateProcess(NULL, newWideCString(r"svchost.exe"), ps, ts, TRUE, 134742028, NULL, NULL, addr si.StartupInfo, addr pi) [1] NULL: typeof(nil) [2] newWideCString(r"svchost.exe"): WideCStringObj [3] ps: SECURITY_ATTRIBUTES [4] ts: SECURITY_ATTRIBUTES [5] TRUE: int literal(1) [6] 134742028: int literal(134742028) [7] NULL: typeof(nil) [8] NULL: typeof(nil) [9] addr si.StartupInfo: ptr STARTUPINFOW [10] addr pi: ptr PROCESS_INFORMATION

Expected one of (first mismatch at [position]): [3] proc CreateProcess(lpApplicationName: LPCWSTR; lpCommandLine: LPWSTR; lpProcessAttributes: LPSECURITY_ATTRIBUTES; lpThreadAttributes: LPSECURITY_ATTRIBUTES; bInheritHandles: WINBOOL; dwCreationFlags: DWORD; lpEnvironment: LPVOID; lpCurrentDirectory: LPCWSTR; lpStartupInfo: LPSTARTUPINFOW; lpProcessInformation: LPPROCESS_INFORMATION): WINBOOL

[!] Stub compilation failed! Check stub for errors.

0xmk4y commented 1 year ago

found issue, should have run nimcrypt2 with sudo :(