Exploit database

GH-9424317eddb8af4f6f831e17dfc20320

rogue-kdc/cve-2020-16939

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-16939

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files13
rogue-kdc/cve-2020-16939Revision ec036ded7ff1

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

FolderTakeover/CommonUtils.h

Text · 658 bytes
#pragma once
#pragma once

#include <Windows.h>
#include <string>

typedef void(__stdcall *console_output)(const char*);

void DebugSetOutput(console_output pout);
void DebugPrintf(const char* lpFormat, ...);
std::wstring GetErrorMessage(DWORD dwError);
std::wstring GetErrorMessage();
BOOL SetPrivilege(HANDLE hToken, LPCTSTR lpszPrivilege, BOOL bEnablePrivilege);
DWORD NtStatusToDosError(NTSTATUS status);
bool CreateNativeHardlink(LPCWSTR linkname, LPCWSTR targetname);
HANDLE OpenFileNative(LPCWSTR path, HANDLE root, ACCESS_MASK desired_access, ULONG share_access, ULONG open_options);
std::wstring BuildFullPath(const std::wstring& path, bool native);