Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG} ConvertTo-Json Error #519

Open
xxanka opened this issue Dec 4, 2021 · 4 comments
Open

[BUG} ConvertTo-Json Error #519

xxanka opened this issue Dec 4, 2021 · 4 comments
Labels
bug Something isn't working confirmed

Comments

@xxanka
Copy link

xxanka commented Dec 4, 2021

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 xxanka added the bug Something isn't working label Dec 4, 2021
@xxanka xxanka changed the title ConvertTo-Json Error [BUG} ConvertTo-Json Error Dec 4, 2021
@xxanka
Copy link
Author

xxanka commented Dec 4, 2021

please help me

@Cx01N
Copy link
Member

Cx01N commented Dec 13, 2021

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

@xxanka
Copy link
Author

xxanka commented Dec 21, 2021

it says 2.0

@Cx01N
Copy link
Member

Cx01N commented Dec 24, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed
Projects
None yet
Development

No branches or pull requests

3 participants