Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Python Agent: Emoji in command responses breaks the agent #589

Closed
Viss opened this issue Jun 23, 2017 · 8 comments
Closed

Python Agent: Emoji in command responses breaks the agent #589

Viss opened this issue Jun 23, 2017 · 8 comments
Assignees
Labels

Comments

@Viss
Copy link
Contributor

Viss commented Jun 23, 2017

Empire Version

newest out of dev, 6/22/17

OS Information (Linux flavor, Python version)

server ubuntu, target newest macos

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

On a live engagement I encountered a machine which had a single emoji character as its hostname. This broke empire, and agents would fail to connect from this host. The following error messages were displayed:

image

image

@rvrsh3ll
Copy link
Contributor

lol, will look into this for sure. If you have a fix, PR please!

@killswitch-GUI
Copy link
Contributor

this is a unicode issue. I have a parser for this! Will take a look

@killswitch-GUI killswitch-GUI self-assigned this Jul 27, 2017
@killswitch-GUI
Copy link
Contributor

Can not replicate @Viss
screen shot 2017-07-27 at 10 03 06 am

Please provide some more info or maybe you can replicate. At the moment it seems like the unicode parsing is correctly working. Are you sure it was in the hostname?

@Viss
Copy link
Contributor Author

Viss commented Jul 27, 2017

Ah, I should have specified.
The victim in this case was a mac.
and the shell was python.

I guess this is a non issue on windows boxes with powershell agents.
Python though, starts fires :D

@killswitch-GUI
Copy link
Contributor

@Viss ahh ok ty for update will check it out!

@killswitch-GUI
Copy link
Contributor

@Viss pull request open!

@rvrsh3ll
Copy link
Contributor

Merged into Dev @Viss

@jeffmcjunkin
Copy link

For posterity: 🍌 4eva

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants