Empire
Empire copied to clipboard
[BUG} ConvertTo-Json Error
Note: Please fill out all sections (if applicable) and do not delete the below section headers, otherwise the bot will close the issue.
Empire Version
- Empire 4.1.3
OS Information (Linux flavor, Python version)
-Linux: 2021 (last)
- Python: 3.9
Describe the bug
if i type ls,ps or dir i am getting this issue: error running command: The term 'ConvertTo-Json' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
To Reproduce
Steps to reproduce the behavior:
- my connection comes from victim's pc
- i click interact "agent name"
- and i opened the shell
- if i type "ls,dir,ps,etc." i am getting ConvertTo-Json error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Additional context
Add any other context about the problem here.
please help me
@empire-help What version of powershell is on the target?
it says 2.0
That explains it, you won't be able to use some of the core features in a PS2 environment. Maybe we can add a legacy option in the future.