blob: 012c62ac615c9cb2c76cf4d90acf6edd29904a58 (
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
|
/* Benjamin DELPY `gentilkiwi`
http://blog.gentilkiwi.com
benjamin@gentilkiwi.com
Licence : http://creativecommons.org/licenses/by/3.0/fr/
*/
#include "mod_mimikatz_impersonate.h"
#include "..\global.h"
vector<KIWI_MIMIKATZ_LOCAL_MODULE_COMMAND> mod_mimikatz_impersonate::getMimiKatzCommands()
{
vector<KIWI_MIMIKATZ_LOCAL_MODULE_COMMAND> monVector;
monVector.push_back(KIWI_MIMIKATZ_LOCAL_MODULE_COMMAND(revert, L"revert", L"RevertToSelf"));
return monVector;
}
bool mod_mimikatz_impersonate::revert(vector<wstring> * arguments)
{
(*outputStream) << L"RevertToSelf : ";
if(RevertToSelf())
(*outputStream) << L"ok";
else
(*outputStream) << L"ko ; " << mod_system::getWinError();
(*outputStream) << endl;
return true;
}
|