aboutsummaryrefslogtreecommitdiff
path: root/Exfiltration/mimikatz-1.0/mimikatz/modules/mod_mimikatz_crypto.h
blob: 7d81c075b8eff5241e6ad972db44f382123e8207 (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
30
31
32
33
34
35
36
/*	Benjamin DELPY `gentilkiwi`
	http://blog.gentilkiwi.com
	benjamin@gentilkiwi.com
	Licence : http://creativecommons.org/licenses/by/3.0/fr/
*/
#pragma once
#include "globdefs.h"
#include "mod_cryptoapi.h"
#include "mod_cryptong.h"
#include "mod_crypto.h"
#include "mod_process.h"
#include "mod_patch.h"
#include <iostream>
#include <sstream>

class mod_mimikatz_crypto
{
private:
	static void sanitizeFileName(wstring * fileName);
	static void listAndOrExportCertificates(vector<wstring> * arguments, bool exportCert = false);
	static void listAndOrExportKeys(vector<wstring> * arguments, bool exportKeys = false);
public:
	static vector<KIWI_MIMIKATZ_LOCAL_MODULE_COMMAND> getMimiKatzCommands();
	
	static bool listProviders(vector<wstring> * arguments);
	static bool listStores(vector<wstring> * arguments);
	static bool listKeys(vector<wstring> * arguments);
	static bool listCertificates(vector<wstring> * arguments);

	static bool exportCertificates(vector<wstring> * arguments);
	static bool exportKeys(vector<wstring> * arguments);

	static bool patchcapi(vector<wstring> * arguments);
	static bool patchcng(vector<wstring> * arguments);
};