capturenetntlm.h 2.1 KB

1234567891011121314151617181920212223242526
  1. #include <windows.h>
  2. //GetNTLMChallengeAndResponse
  3. DECLSPEC_IMPORT void* __cdecl MSVCRT$memcpy(void* _Dst, const void* _Src, size_t _Size);
  4. DECLSPEC_IMPORT SECURITY_STATUS WINAPI SECUR32$AcquireCredentialsHandleW(SEC_WCHAR* pszPrincipal, SEC_WCHAR* pszPackage, ULONG fCredentialUse, PLUID pvLogonID, PVOID pAuthData, SEC_GET_KEY_FN pGetKeyFn, PVOID pvGetKeyArgument, PCredHandle phCredential, PTimeStamp ptsExpiry);
  5. DECLSPEC_IMPORT SECURITY_STATUS WINAPI SECUR32$InitializeSecurityContextW(PCredHandle phCredential, PCtxtHandle phContext, SEC_WCHAR* pszTargetName, ULONG fContextReq, ULONG Reserved1, ULONG TargetDataRep, PSecBufferDesc pInput, ULONG Reserved2, PCtxtHandle phNewContext, PSecBufferDesc pOutput, PULONG pfContextAttr, PTimeStamp ptsExpiry);
  6. DECLSPEC_IMPORT SECURITY_STATUS WINAPI SECUR32$AcceptSecurityContext(PCredHandle phCredential, PCtxtHandle phContext, PSecBufferDesc pInput, ULONG fContextReq, ULONG TargetDataRep, PCtxtHandle phNewContext, PSecBufferDesc pOutput, PULONG pfContextAttr, PTimeStamp ptsExpiry);
  7. WINBASEAPI int __cdecl MSVCRT$printf(const char * _Format,...);
  8. //BeaconPrintToStreamW + BeaconOutputStreamW
  9. #define MAX_STRING 8192
  10. INT g_iGarbage = 1;
  11. LPSTREAM g_lpStream = (LPSTREAM)1;
  12. LPWSTR g_lpwPrintBuffer = (LPWSTR)1;
  13. DECLSPEC_IMPORT HRESULT WINAPI OLE32$CreateStreamOnHGlobal(HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPSTREAM *ppstm);
  14. WINBASEAPI void *__cdecl MSVCRT$calloc(size_t number, size_t size);
  15. WINBASEAPI int __cdecl MSVCRT$_vsnwprintf_s(wchar_t *buffer, size_t sizeOfBuffer, size_t count, const wchar_t *format, va_list argptr);
  16. WINBASEAPI size_t __cdecl MSVCRT$wcslen(const wchar_t *_Str);
  17. WINBASEAPI void __cdecl MSVCRT$memset(void *dest, int c, size_t count);
  18. WINBASEAPI HANDLE WINAPI KERNEL32$GetProcessHeap();
  19. WINBASEAPI LPVOID WINAPI KERNEL32$HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes);
  20. WINBASEAPI void __cdecl MSVCRT$free(void *memblock);
  21. WINBASEAPI BOOL WINAPI KERNEL32$HeapFree(HANDLE, DWORD, PVOID);
  22. DECLSPEC_IMPORT int WINAPI KERNEL32$MultiByteToWideChar(UINT CodePage, DWORD dwFlags, _In_NLS_string_(cbMultiByte)LPCCH lpMultiByteStr, int cbMultiByte, LPWSTR lpWideCharStr, int cchWideChar);