forked from gentilkiwi/mimikatz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots of internals and 2003 SP1 support
- [new] sekurlsa module and its kerberos submodule now work with old 2003 SP1 (live or dump) - [remove] misc::wifi with WLanAPI will be replaced with dpapi::wifi raw access - [fix] crypto::certificate buffer free at the right place - [internal] new kull_m_file Find function with callback - [internal] removed kull_m_file functions (read/write/file exist) with environment-variables, now used for all command-lines - [internal] kull_m_crypto_hash better checks for CRC32 trick - [internal] mimilove for Windows 2000 banner update - [internal] crypto::system now works with buffers (for future registry access) - [internal] kerberos::ptt & crypto::system call kull_m_file_Find instead of their own implementation - [internal] remove CrtlHandler, from mimikatz main modules, when exiting to let PowerShell clean - [internal] expand command lines environment-variables from mimikatz main modules
- Loading branch information
1 parent
111b47a
commit f114a77
Showing
15 changed files
with
272 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ int wmain(int argc, wchar_t * argv[]) | |
L" ## \\ / ## Benjamin DELPY `gentilkiwi` ( [email protected] )\n" | ||
L" '## v ##' http://blog.gentilkiwi.com/mimikatz (oe.eo)\n" | ||
L" '#####' " MIMIKATZ_SPECIAL L" with %2u modules * * */\n", ARRAYSIZE(mimikatz_modules)); | ||
|
||
mimikatz_initOrClean(TRUE); | ||
for(i = MIMIKATZ_AUTO_COMMAND_START ; (i < argc) && (status != STATUS_FATAL_APP_EXIT) ; i++) | ||
{ | ||
|
@@ -66,6 +66,7 @@ int wmain(int argc, wchar_t * argv[]) | |
#endif | ||
mimikatz_initOrClean(FALSE); | ||
#ifndef _WINDLL | ||
SetConsoleCtrlHandler(HandlerRoutine, FALSE); | ||
kull_m_output_clean(); | ||
#endif | ||
return STATUS_SUCCESS; | ||
|
@@ -111,13 +112,18 @@ NTSTATUS mimikatz_initOrClean(BOOL Init) | |
NTSTATUS mimikatz_dispatchCommand(wchar_t * input) | ||
{ | ||
NTSTATUS status; | ||
switch(input[0]) | ||
PWCHAR full; | ||
if(full = kull_m_file_fullPath(input)) | ||
{ | ||
switch(full[0]) | ||
{ | ||
case L'!': | ||
status = kuhl_m_kernel_do(input + 1); | ||
status = kuhl_m_kernel_do(full + 1); | ||
break; | ||
default: | ||
status = mimikatz_doLocal(input); | ||
status = mimikatz_doLocal(full); | ||
} | ||
LocalFree(full); | ||
} | ||
return status; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.