BC-SECURITY / Empire

Empire is a post-exploitation and adversary emulation framework that is used to aid Red Teams and Penetration Testers.
https://bc-security.gitbook.io/empire-wiki/
BSD 3-Clause "New" or "Revised" License
4.17k stars 570 forks source link

Unable to print creds saved by mimikatz #31

Closed bsrinivasguptha closed 4 years ago

bsrinivasguptha commented 4 years ago

Empire Version

3.0

OS Information (Linux flavor, Python version)

Linux kali 5.3.0-kali2-amd64 #1 SMP Debian 5.3.9-3kali1 (2019-11-20) x86_64 GNU/Linux Python 3.7.5

Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.

Below are the series of commands executed:

listeners
uselistener http
set Port 80
execute
launcher powershell http
interact <AGENT-1>
bypassuac http
interact <AGENT-2>
mimikatz
creds

Screenshot of error, embedded text output, or Pastebin link to the error

(Empire: agents) > creds
Credentials:
  CredID  CredType   Domain                   UserName         Host             Password
[!] Exception: unsupported format string passed to bytes.__format__

Any additional information

None

Hubbl3 commented 4 years ago

@srinivasguptha we will address this shortly but this is a bug caused by the 2.7 to 3.x conversion. If you run it in 2.7 the error should go away as temporary work around

Invoke-Mimikatz commented 4 years ago

Running Empire 3.0.1 (bugfix branch) in python2 fails with the error below:

image

Running Python version 2.7.17

Hubbl3 commented 4 years ago

@Invoke-Mimikatz you need to run reset.sh when switching between versions. The pickle protocol doesn't seem to be version agnostic

Hubbl3 commented 4 years ago

@bsrinivasguptha and @Invoke-Mimikatz . I just pushed a commit to the 3.0-bug-fixes branch that fixes the issue