Exploit databaseDownload repository ZIP
GH-f19e04ffb70a8bb8eae363c9c43abef6
padovah4ck/cve-2020-0683
Sources for CVE-2020-0683
8 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files21
padovah4ck/cve-2020-0683Revision 0acab07b6de8
- ↑..Parent directory
- CommonUtils.cpp
- CommonUtils.h
- FileOpLock.cpp
- FileOpLock.h
- MsiExploit.cpp
- MsiExploit.filters
- MsiExploit.user
- MsiExploit.vcxproj
- MsiExploit.vcxproj.user
- ReparsePoint.cpp
- ReparsePoint.h
- ScopedHandle.cpp
- ScopedHandle.h
- foo.msi
- ntimports.h
- readfile.user
- runExploit.bat
- stdafx.cpp
- stdafx.h
- targetver.h
- typed_buffer.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src_MsiExploit/MsiExploit/ScopedHandle.h
Text · 498 bytes#pragma once
class ScopedHandle
{
HANDLE g_h;
public:
ScopedHandle(HANDLE h, bool duplicate);
void Close();
void Reset(HANDLE h);
bool IsValid() const {
return (g_h != nullptr) && (g_h != INVALID_HANDLE_VALUE);
}
ScopedHandle(const ScopedHandle& other);
ScopedHandle& operator=(const ScopedHandle& other);
ScopedHandle(ScopedHandle&& other);
ScopedHandle& operator=(ScopedHandle&& other);
operator HANDLE() const {
return g_h;
}
~ScopedHandle();
};