Empire icon indicating copy to clipboard operation
Empire copied to clipboard

[BUG} ConvertTo-Json Error

Open xxanka opened this issue 3 years ago • 4 comments

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:

  1. my connection comes from victim's pc
  2. i click interact "agent name"
  3. and i opened the shell
  4. 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

image

Additional context

Add any other context about the problem here.

xxanka avatar Dec 04 '21 09:12 xxanka

please help me

xxanka avatar Dec 04 '21 23:12 xxanka

@empire-help What version of powershell is on the target?

Cx01N avatar Dec 13 '21 02:12 Cx01N

it says 2.0

xxanka avatar Dec 21 '21 16:12 xxanka

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.

Cx01N avatar Dec 24 '21 17:12 Cx01N