Exploit database

GH-54537ae3ba57b9e9af75b7b3d6176ecd

modulexcite/systracingpoc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-0668

14 sources

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

Repository files21
modulexcite/systracingpocRevision 9ef9aa3f304d

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

CommonUtils/FileSymlink.h

Text · 562 bytes
#pragma once
#include <comdef.h>

class FileSymlink
{	
	bstr_t m_junctiondir;
	bstr_t m_linkname;
	bstr_t m_target;
	bool m_created_junction;
	HANDLE m_hlink;	
	bool m_permanent;

public:
	FileSymlink(bool permanent);
	FileSymlink();
	FileSymlink(FileSymlink&& other);
	FileSymlink& operator=(FileSymlink&& other);
	FileSymlink(const FileSymlink& other) = delete;
	FileSymlink& operator=(const FileSymlink& other) = delete;

	bool CreateSymlink(LPCWSTR symlink, LPCWSTR target, LPCWSTR baseobjdir);
	bool ChangeSymlink(LPCWSTR newtarget);	

	~FileSymlink();
};