aboutsummaryrefslogtreecommitdiff
path: root/Exfiltration/mimikatz-1.0/modules/mod_pipe.h
blob: 69ab9e900d5ddfe7039f71323c2680dba63d950c (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
27
28
29
/*	Benjamin DELPY `gentilkiwi`
	http://blog.gentilkiwi.com
	benjamin@gentilkiwi.com
	Licence : http://creativecommons.org/licenses/by/3.0/fr/
*/
#pragma once
#include "globdefs.h"

class mod_pipe
{
private:
	HANDLE hPipe;
	wstring pipePath;

public:
	mod_pipe(wstring pipeName = L"mimikatz\\kiwi", wstring serveur = L".");
	virtual ~mod_pipe(void);

	bool closePipe();

	bool readFromPipe(wstring &laReponse);
	bool writeToPipe(const wstring &leMessage);

	bool createServer();
	bool createClient();

	bool isConnected();
};