mandiant / commando-vm

Complete Mandiant Offensive VM (Commando VM), a fully customizable Windows-based pentesting virtual machine distribution. commandovm@mandiant.com
https://www.mandiant.com/resources/blog/commando-vm-windows-offensive-distribution
Apache License 2.0
6.88k stars 1.28k forks source link

Mimikatz: Readline error #182

Closed cutaway closed 3 years ago

cutaway commented 3 years ago

Describe the bug and expected behavior Attempted to run mimikatz from command line.

PS C:\Users\admin > mimikatz
Traceback (most recent call last):
  "File C:\Python27\Scripts\mimikatz.py", line 40, in <module>
    import readline
ImportError: No module named readline

To Reproduce Steps to reproduce the behavior:

  1. Open terminal
  2. Run 'mimikatz'
  3. See error

Version

Additional context Review of the mimikatz.py code shows that the mimikatz.py script tests for PyReadline first and then tries to use the flagged readline import.

The following update worked for me. From terminal:

PS C:\Users\admin > cd C:\Python27
PS C:\Python27 > ./python -m pip install pyreadline
[snip installation output]

PS C:\Python27 > mimikatz
[snip normal mimikatz usage output]
day1player commented 3 years ago

This seems to be operating normally, please let me know if it is not working as expected.