You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to launch a literal command within a Powershell Agent I get the following error: The term 'else' is not recognized as the name of a cmdlet, function, script file, or operable program.
To Reproduce
Steps to reproduce the behavior:
Go to a live Powershell Agent -> Interact tab
Enter a Shell command (e.g. whoami /priv) checking the Literal box
Go to Task and see the error
Expected behavior
The result of the command launched.
Screenshots
Error of the command executed:
Additional context
The problem is in the Agent.ps1 file, as you can see below there's a ';' after an If and before the following Else.
I already submitted a trivial pull request that fixes the problem, I'm creating this bug report just to make it easier for other people to find this bug.
The text was updated successfully, but these errors were encountered:
* add a coverage report to pull requests
* typo
* add extra exclusions
* update changelog
* bump black on pre-commit and github actions to match poetry lock
* use pre-commit mirror for faster runs
Empire Version
OS Information (Linux flavor, Python version)
Describe the bug
When trying to launch a literal command within a Powershell Agent I get the following error:
The term 'else' is not recognized as the name of a cmdlet, function, script file, or operable program.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The result of the command launched.
Screenshots
Error of the command executed:
Additional context
The problem is in the Agent.ps1 file, as you can see below there's a ';' after an If and before the following Else.
I already submitted a trivial pull request that fixes the problem, I'm creating this bug report just to make it easier for other people to find this bug.
The text was updated successfully, but these errors were encountered: