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

Powershell syntax error #3115

Closed
DarkApollo opened this issue Mar 15, 2023 · 1 comment
Closed

Powershell syntax error #3115

DarkApollo opened this issue Mar 15, 2023 · 1 comment
Assignees
Labels
Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. Complexity: Medium Impact: Medium Reported by user
Milestone

Comments

@DarkApollo
Copy link

Describe the bug

The 'Run From Machine' presented powershell script is given as a single line which will cause syntax errors if copied from the box directly.
Using the Copy To Clipboard copies the script correctly.

This issue is only present for the script when copying directly from the script box and not from the copy-to-clipboard macro.

To Reproduce

Steps to reproduce the behavior:
Run From Machine
Copy script directly from text box
Paste into Powershell ISE
@" and "@ appear on the same line which will cause a syntax error

Expected behavior

Presented script should resemble correct syntax as it does when using copy-to-clipboard

Screenshots

Copy To Clipboard
image

Copy from Script Box
image

Machine version (please complete the following information):

Linux 2.0.0

@mssalvatore
Copy link
Collaborator

Fixed by #3152

mssalvatore added a commit that referenced this issue Mar 28, 2023
@mssalvatore mssalvatore added this to the v2.1.0 milestone Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. Complexity: Medium Impact: Medium Reported by user
Projects
None yet
Development

No branches or pull requests

3 participants