fix spacing, update reg fix, add flags to readme
This commit is contained in:
@@ -254,7 +254,9 @@ bool wufuc_InjectLibrary(DWORD dwProcessId, ContextHandles *pContext)
|
||||
HANDLE hSrcProcess;
|
||||
ContextHandles param = { 0 };
|
||||
|
||||
if ( swprintf_s(MutexName, _countof(MutexName), L"Global\\%08x-7132-44a8-be15-56698979d2f3", dwProcessId) == -1 ) {
|
||||
if ( swprintf_s(MutexName, _countof(MutexName),
|
||||
L"Global\\%08x-7132-44a8-be15-56698979d2f3", dwProcessId) == -1 ) {
|
||||
|
||||
trace(L"Failed to print mutex name to string! (%lu)", dwProcessId);
|
||||
return result;
|
||||
}
|
||||
|
@@ -15,7 +15,8 @@ bool InitializeMutex(bool InitialOwner, LPCWSTR pMutexName, HANDLE *phMutex)
|
||||
*phMutex = hMutex;
|
||||
return true;
|
||||
} else {
|
||||
trace(L"Failed to create mutex: %ls (GetLastError=%ld)", pMutexName, GetLastError());
|
||||
trace(L"Failed to create mutex: %ls (GetLastError=%ld)",
|
||||
pMutexName, GetLastError());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -109,7 +110,10 @@ LPBYTE RegQueryValueExAlloc(
|
||||
return result;
|
||||
}
|
||||
|
||||
PVOID NtQueryKeyAlloc(HANDLE KeyHandle, KEY_INFORMATION_CLASS KeyInformationClass, PULONG pResultLength)
|
||||
PVOID NtQueryKeyAlloc(
|
||||
HANDLE KeyHandle,
|
||||
KEY_INFORMATION_CLASS KeyInformationClass,
|
||||
PULONG pResultLength)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
ULONG ResultLength;
|
||||
|
@@ -20,5 +20,8 @@ LPBYTE RegQueryValueExAlloc(
|
||||
LPCWSTR pValueName,
|
||||
LPDWORD pType,
|
||||
LPDWORD pcbData);
|
||||
PVOID NtQueryKeyAlloc(HANDLE KeyHandle, KEY_INFORMATION_CLASS KeyInformationClass, PULONG pResultLength);
|
||||
PVOID NtQueryKeyAlloc(
|
||||
HANDLE KeyHandle,
|
||||
KEY_INFORMATION_CLASS KeyInformationClass,
|
||||
PULONG pResultLength);
|
||||
LPWSTR ExpandEnvironmentStringsAlloc(LPCWSTR src, LPDWORD pcchLength);
|
||||
|
@@ -66,7 +66,10 @@ bool QueryServiceStatusProcessInfoByName(
|
||||
return result;
|
||||
}
|
||||
|
||||
bool QueryServiceGroupName(const LPQUERY_SERVICE_CONFIGW pServiceConfig, LPWSTR *pGroupName, HLOCAL *hMem)
|
||||
bool QueryServiceGroupName(
|
||||
const LPQUERY_SERVICE_CONFIGW pServiceConfig,
|
||||
LPWSTR *pGroupName,
|
||||
HLOCAL *hMem)
|
||||
{
|
||||
bool result = false;
|
||||
int NumArgs;
|
||||
|
@@ -12,9 +12,12 @@ bool QueryServiceStatusProcessInfoByName(
|
||||
SC_HANDLE hSCM,
|
||||
const wchar_t *pServiceName,
|
||||
LPSERVICE_STATUS_PROCESS pServiceStatus);
|
||||
bool QueryServiceGroupName(const LPQUERY_SERVICE_CONFIGW pServiceConfig, LPWSTR *pGroupName, HLOCAL *hMem);
|
||||
bool QueryServiceGroupName(
|
||||
const LPQUERY_SERVICE_CONFIGW pServiceConfig,
|
||||
LPWSTR *pGroupName,
|
||||
HLOCAL *hMem);
|
||||
DWORD QueryServiceProcessId(SC_HANDLE hSCM, SC_HANDLE hService);
|
||||
DWORD QueryServiceProcessIdByName(SC_HANDLE hSCM, const wchar_t *pServiceName);
|
||||
DWORD HeuristicServiceGroupProcessId(SC_HANDLE hSCM, const wchar_t *pGroupName);
|
||||
DWORD HeuristicServiceProcessId(SC_HANDLE hSCM, SC_HANDLE hService);
|
||||
DWORD HeuristicServiceProcessIdByName(SC_HANDLE hSCM, const wchar_t *pServiceName);
|
||||
DWORD HeuristicServiceProcessIdByName(SC_HANDLE hSCM, const wchar_t *pServiceName);
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user