Skip to content

Commit

Permalink
Fixed wrong semi-colon between 'if-else' for Literal execution in pow…
Browse files Browse the repository at this point in the history
…ershell Agents (#675)
  • Loading branch information
crittico authored Jul 14, 2023
1 parent 53a3a94 commit 5a92ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion empire/server/data/agent/agent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function Invoke-Empire {
$output = '';
if ($cmd.ToLower() -eq 'shell') {
# if we have a straight 'shell' command, skip the aliases
if ($cmdargs.length -eq '') { $output = 'no shell command supplied' };
if ($cmdargs.length -eq '') { $output = 'no shell command supplied' }
else {
$OldConsoleOut = [Console]::Out;
$StringWriter = New-Object IO.StringWriter;
Expand Down

0 comments on commit 5a92ddb

Please sign in to comment.