CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/HostingCLR_inject/HostingCLR/HostingCLR.h
Views: 11780
1
#pragma once
2
#include <io.h>
3
#include <stdio.h>
4
#include <tchar.h>
5
#include <metahost.h>
6
7
8
#pragma comment(lib, "MSCorEE.lib")
9
10
#import "mscorlib.tlb" raw_interfaces_only \
11
high_property_prefixes("_get","_put","_putref") \
12
rename("ReportEvent", "InteropServices_ReportEvent")
13
14
#define STATUS_SUCCESS 0
15
#define NtCurrentProcess() ( (HANDLE)(LONG_PTR) -1 )
16
17
using namespace mscorlib;
18
19
VOID Execute(LPVOID lpPayload);
20
BOOL FindVersion(void * assembly, int length);
21
BOOL PatchAmsi(HANDLE pipe);
22
BOOL ClrIsLoaded(LPCWSTR versione, IEnumUnknown* pEnumerator, LPVOID * pRuntimeInfo);
23
INT InlinePatch(LPVOID lpFuncAddress, UCHAR * patch, int patchsize);
24
25