Exploit database

GH-935a87b70a48212e0adee83a93b212a2

redyopsresearchlabs/sep-14.2-arbitrary-write

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-5837

1 source

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

Repository files22

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

src/CommonUtils/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();
};