Skip to content

Commit

Permalink
Fix for spawnas not generating bat file (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cx01N authored and vinnybod committed Sep 16, 2023
1 parent 6226f2e commit 4050a35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add additional pre-commit hooks for code cleanup (@Vinnybod)
- Report test coverage on pull requests (@Vinnybod)
- Fixed issue with multiple parameters not executing in IronPython for C# tasks (@Cx01N)
- Fix for spawnas not generating bat file (@wizquaza)

## [5.6.4] - 2023-09-08

Expand Down
2 changes: 1 addition & 1 deletion empire/server/modules/powershell/management/spawnas.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def generate(

# PowerShell code to write the launcher.bat out
script_end = '$tempLoc = "$env:public\debug.bat"'
script_end += '\n$batCode = @"\n' + launcher_code + '"@\n'
script_end += '\n$batCode = @"\n' + launcher_code + '\n"@\n'
script_end += "$batCode | Out-File -Encoding ASCII $tempLoc ;\n"
script_end += '"Launcher bat written to $tempLoc `n";\n'

Expand Down

0 comments on commit 4050a35

Please sign in to comment.