{"id":13143,"date":"2019-04-01T03:19:05","date_gmt":"2019-04-01T03:19:05","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13143"},"modified":"2019-04-01T03:19:05","modified_gmt":"2019-04-01T03:19:05","slug":"mimipenguin-dump-login-passwords-from-current-linux-users","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/mimipenguin-dump-login-passwords-from-current-linux-users\/","title":{"rendered":"mimipenguin \u2013 Dump Login Passwords From Current Linux Users"},"content":{"rendered":"<p><strong>Mimipenguin<\/strong>\u00a0is a free and open source, simple yet powerful Shell\/Python script used to dump the login credentials (usernames and passwords) from the current Linux desktop user and it has been tested on various Linux distributions.<\/p>\n<p>Additionally, it supports applications such as: VSFTPd (active FTP client connections), Apache2 (active\/old HTTP BASIC AUTH sessions but this requires Gcore) and openssh-server (active SSH connections with\u00a0<a href=\"https:\/\/www.tecmint.com\/sudoers-configurations-for-setting-sudo-in-linux\/\" target=\"_blank\" rel=\"noopener noreferrer\">sudo command usage<\/a>). Importantly, it\u2019s gradually being ported to numerous languages to support all imaginable post-exploit situations.<\/p>\n<h4>How does Mimipenguin Works?<\/h4>\n<p>To understand how mimipenguin works, you need to keep in mind that all if not most Linux distributions store a great deal of such critical information as: credentials, encryption keys, as well as personal data in memory.<\/p>\n<p>Particularly usernames and passwords are held by processes (running programs) in memory and stored as plain text for relatively long periods of time. Mimipenguin technically exploits these clear-text credentials in memory \u2013 it dumps a process and extracts lines that have a likelihood of accommodating clear-text credentials.<\/p>\n<p>It then tries to perform a calculation of each word\u2019s chances of being present by determining hashes in:\u00a0<strong>\/etc\/shadow<\/strong>, memory, and regex searches. Once it finds any, it prints them on standard output.<\/p>\n<h3>Installing Mimipenguin in Linux Systems<\/h3>\n<p>We will use git to clone the mimipenguin repository, so first install git on the system if in case you don\u2019t have it.<\/p>\n<pre>$ sudo apt install git \t\t#Debian\/Ubuntu systems\r\n$ sudo yum install git\t\t#RHEL\/CentOS systems\r\n$ sudo dnf install git\t\t#Fedora 22+\r\n<\/pre>\n<p>Then clone the mimipenguin directory in your home folder (any where else) like this:<\/p>\n<pre>$ git clone https:\/\/github.com\/huntergregal\/mimipenguin.git\r\n<\/pre>\n<p>Once you have downloaded the directory, move into it and run mimipenguin as follows:<\/p>\n<pre>$ cd mimipenguin\/\r\n$ .\/mimipenguin.sh \r\n<\/pre>\n<p><strong>Note<\/strong>: If you encounter the error below, use the sudo command like so:<\/p>\n<pre>Root required - You are dumping memory...\r\nEven mimikatz requires administrator\r\n<\/pre>\n<div id=\"attachment_25802\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-25802\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/06\/Dump-Login-Passwords-in-Linux.png\" alt=\"Dump Login Passwords in Linux\" width=\"636\" height=\"116\" aria-describedby=\"caption-attachment-25802\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-25802\" class=\"wp-caption-text\">Dump Login Passwords in Linux<\/p>\n<\/div>\n<p>From the output above, mimipenguin provides you the desktop environment along with the username and password.<\/p>\n<p>Alternatively, run the Python script as follows:<\/p>\n<pre>$ sudo .\/mimipenguin.py\r\n<\/pre>\n<p><strong>Note<\/strong>\u00a0that sometimes gcore may hang the script (this is a known problem with gcore).<\/p>\n<h4>Future Updates<\/h4>\n<p>Below is a list of features yet to be added in mimipenguin:<\/p>\n<ul>\n<li>Improving overall effectiveness<\/li>\n<li>Adding more support and other credential locations<\/li>\n<li>Including support for non-desktop environments<\/li>\n<li>Adding support for LDAP<\/li>\n<\/ul>\n<p>mimipenguin Github repository:\u00a0<a href=\"https:\/\/github.com\/huntergregal\/mimipenguin\" rel=\"nofollow\">https:\/\/github.com\/huntergregal\/mimipenguin<\/a><\/p>\n<p>Also, check out:<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/password-protect-vim-file-in-linux\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to Password Protect a Vim File in Linux<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/generate-encrypt-decrypt-random-passwords-in-linux\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to Generate\/Encrypt\/Decrypt Random Passwords in Linux<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/password-protect-grub-in-linux\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to Protect GRUB with Password in RHEL \/ CentOS \/ Fedora Linux<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/reset-forgotten-root-password-in-centos-7-rhel-7\/\" target=\"_blank\" rel=\"noopener noreferrer\">Resetting\/Recovering Forgotten Root User Account Password in CentOS 7<\/a><\/li>\n<\/ol>\n<p>Do share any additional ideas relating to this tool or issues of cleartext credentials in memory in Linux via the comment section below.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/mimipenguin-hack-login-passwords-of-linux-users\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mimipenguin\u00a0is a free and open source, simple yet powerful Shell\/Python script used to dump the login credentials (usernames and passwords) from the current Linux desktop user and it has been tested on various Linux distributions. Additionally, it supports applications such as: VSFTPd (active FTP client connections), Apache2 (active\/old HTTP BASIC AUTH sessions but this requires &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/mimipenguin-dump-login-passwords-from-current-linux-users\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;mimipenguin \u2013 Dump Login Passwords From Current Linux Users&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13143","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13143"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13143\/revisions"}],"predecessor-version":[{"id":13144,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13143\/revisions\/13144"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}