mirror of
https://github.com/gentilkiwi/mimikatz
synced 2025-02-25 14:20:31 +00:00
[new] mimikatz localtime command (from/for @OJ)
[removed] mimikatz markruss command (for @Microsoft)
This commit is contained in:
parent
cdd0722efa
commit
8fcc011593
@ -7,16 +7,17 @@
|
||||
|
||||
const KUHL_M_C kuhl_m_c_standard[] = {
|
||||
//{kuhl_m_standard_test, L"test", L"Test routine (you don\'t want to see this !)"},
|
||||
{kuhl_m_standard_exit, L"exit", L"Quit mimikatz"},
|
||||
{kuhl_m_standard_cls, L"cls", L"Clear screen (doesn\'t work with redirections, like PsExec)"},
|
||||
{kuhl_m_standard_answer, L"answer", L"Answer to the Ultimate Question of Life, the Universe, and Everything"},
|
||||
{kuhl_m_standard_coffee, L"coffee", L"Please, make me a coffee!"},
|
||||
{kuhl_m_standard_sleep, L"sleep", L"Sleep an amount of milliseconds"},
|
||||
{kuhl_m_standard_log, L"log", L"Log mimikatz input/output to file"},
|
||||
{kuhl_m_standard_base64, L"base64", L"Switch file output/base64 output"},
|
||||
{kuhl_m_standard_version, L"version", L"Display some version informations"},
|
||||
{kuhl_m_standard_cd, L"cd", L"Change or display current directory"},
|
||||
{kuhl_m_standard_markruss, L"markruss",L"Mark about PtH"},
|
||||
{kuhl_m_standard_exit, L"exit", L"Quit mimikatz"},
|
||||
{kuhl_m_standard_cls, L"cls", L"Clear screen (doesn\'t work with redirections, like PsExec)"},
|
||||
{kuhl_m_standard_answer, L"answer", L"Answer to the Ultimate Question of Life, the Universe, and Everything"},
|
||||
{kuhl_m_standard_coffee, L"coffee", L"Please, make me a coffee!"},
|
||||
{kuhl_m_standard_sleep, L"sleep", L"Sleep an amount of milliseconds"},
|
||||
{kuhl_m_standard_log, L"log", L"Log mimikatz input/output to file"},
|
||||
{kuhl_m_standard_base64, L"base64", L"Switch file output/base64 output"},
|
||||
{kuhl_m_standard_version, L"version", L"Display some version informations"},
|
||||
{kuhl_m_standard_cd, L"cd", L"Change or display current directory"},
|
||||
{kuhl_m_standard_localtime, L"localtime", L"Displays system local date and time (OJ command)"},
|
||||
|
||||
};
|
||||
const KUHL_M kuhl_m_standard = {
|
||||
L"standard", L"Standard module", L"Basic commands (does not require module name)",
|
||||
@ -130,8 +131,16 @@ NTSTATUS kuhl_m_standard_cd(int argc, wchar_t * argv[])
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS kuhl_m_standard_markruss(int argc, wchar_t * argv[])
|
||||
NTSTATUS kuhl_m_standard_localtime(int argc, wchar_t * argv[])
|
||||
{
|
||||
kprintf(L"Sorry you guys don\'t get it.\n");
|
||||
FILETIME ft;
|
||||
TIME_ZONE_INFORMATION tzi;
|
||||
DWORD dwTzi;
|
||||
GetSystemTimeAsFileTime(&ft);
|
||||
dwTzi = GetTimeZoneInformation(&tzi);
|
||||
kprintf(L"Local: "); kull_m_string_displayLocalFileTime(&ft); kprintf(L"\n");
|
||||
if(dwTzi != TIME_ZONE_ID_INVALID && dwTzi != TIME_ZONE_ID_UNKNOWN)
|
||||
kprintf(L"Zone : %.32s\n", (dwTzi == TIME_ZONE_ID_STANDARD) ? tzi.StandardName : tzi.DaylightName);
|
||||
kprintf(L"UTC : "); kull_m_string_displayFileTime(&ft); kprintf(L"\n");
|
||||
return STATUS_SUCCESS;
|
||||
}
|
@ -20,5 +20,5 @@ NTSTATUS kuhl_m_standard_log(int argc, wchar_t * argv[]);
|
||||
NTSTATUS kuhl_m_standard_base64(int argc, wchar_t * argv[]);
|
||||
NTSTATUS kuhl_m_standard_version(int argc, wchar_t * argv[]);
|
||||
NTSTATUS kuhl_m_standard_cd(int argc, wchar_t * argv[]);
|
||||
NTSTATUS kuhl_m_standard_test(int argc, wchar_t * argv[]);
|
||||
NTSTATUS kuhl_m_standard_markruss(int argc, wchar_t * argv[]);
|
||||
NTSTATUS kuhl_m_standard_localtime(int argc, wchar_t * argv[]);
|
||||
NTSTATUS kuhl_m_standard_test(int argc, wchar_t * argv[]);
|
Loading…
Reference in New Issue
Block a user