Error With Ampersand Character in Stager
Closed this issue · 2 comments
p3nt4 commented
Empire Version
2.3
Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
Hi, I am trying to launch an empire stager through powershell runspaces in c#
(https://github.com/p3nt4/PowerShdll).
rundll32 Powershdll.dll,main $a = [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String("BASE64LAUNCHER")); Invoke-Expression $a
The ampersand in the stager is causing an error (please see below).
Is it possible to replace that symbol by a command?
Screenshot of error, embedded text output, or Pastebin link to the error
At line:1 char:2939
+ ... . . $ d A T a . l E N g t H ] ; - J o I n [ C h a r [ ] ] ( & $ R ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
Any additional information
This is not an Empire issue per say but any help would be appreciated.
Thank you.