summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-client/RemoteCode/RemoteMapper.hpp
blob: 21eb56985d10daaf4c19ce411d7d7a5430c2f9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <RemoteCode/RemoteProcess.hpp>

namespace RemoteCode
{
	class RemoteMapper
	{
		RemoteProcess	m_Process;
		uint8_t		   *m_Mapped;

		void		   *m_Map;

	public:
		RemoteMapper() = default;

		// Copy process & shellcode to class.
		bool Start(RemoteProcess Process);

		// Writes code to process in allocated page.
		bool WriteCodeToMap(ByteArray Code);

		// Calls shellcode to call the library ;D
		bool ExecuteCodeFromMap();
	};
}