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.25k stars 576 forks source link

[BUG] Random function name starts with a number is not supported on powershell 2 #169

Closed tyraniter closed 4 years ago

tyraniter commented 4 years ago

Empire Version

OS Information (Linux flavor, Python version)

Describe the bug Powershell version 2 does not support function name starts with number, so the random function name aliasing to Invoke-Empire & Mimikatz might cause an error when running on powershell 2.

To Reproduce N/A

Expected behavior Fix the first identifier of function name aliasing to Invoke-Empire & Mimikatz to letter during setup.

Screenshots image

Additional context N/A

Hubbl3 commented 4 years ago

@tyraniter submitted a pull request fixing the issue