[fix] mimikatz as DLL, new console is not mandatory
This commit is contained in:
parent
fc7f5cc2a3
commit
571fc8cc99
|
@ -260,8 +260,8 @@ void CALLBACK mimikatz_dll(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int n
|
||||||
{
|
{
|
||||||
int argc = 0;
|
int argc = 0;
|
||||||
wchar_t ** argv;
|
wchar_t ** argv;
|
||||||
if(AllocConsole())
|
|
||||||
{
|
AllocConsole();
|
||||||
#pragma warning(push)
|
#pragma warning(push)
|
||||||
#pragma warning(disable:4996)
|
#pragma warning(disable:4996)
|
||||||
freopen("CONOUT$", "w", stdout);
|
freopen("CONOUT$", "w", stdout);
|
||||||
|
@ -277,7 +277,6 @@ void CALLBACK mimikatz_dll(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int n
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else wmain(0, NULL);
|
else wmain(0, NULL);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue