CRT icon indicating copy to clipboard operation
CRT copied to clipboard

Characters not allowed

Open ctizz opened this issue 4 years ago • 5 comments

Hey all, when I try to run the script I receive two main errors, logged several times throughout.

Examples:

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. At C:\CRT\Get-CRTReport.ps1:197 char:190

  • ... ata-ga-click="(Logged out) Header, go to Features">Features <span cla ...

The '<' operator is reserved for future use. At C:\CRT\Get-CRTReport.ps1:197 char:261

  • ... ="Bump-link-symbol float-right text-normal text-gray-light">→</s ...

ctizz avatar Jan 13 '21 19:01 ctizz

Thanks for your feedback @ctizz; we've received a few others reporting similar issues, but have not been able to replicate it. Is there additional information you can provide on how you are running the script?

Also, please pull down the latest version and test again. We did make a few changes just a bit ago (though not specific to this).

csdr4 avatar Jan 14 '21 18:01 csdr4

Hi, I have the same issue and pulled the script from 2021-01-15.

We have an ampersand in our business namn, that might be the issue?

Thanks

lefty44 avatar Jan 15 '21 09:01 lefty44

All – I think this may have to do with how the script is downloaded or saved. I opened the script in ISE and saved It again locally, then I was able to run it without issue. This was regardless of the most recent script or a prior version. Thanks for the support here.

-Chris

From: lefty44 [mailto:[email protected]] Sent: Friday, January 15, 2021 4:31 AM To: CrowdStrike/CRT [email protected] Cc: Tizzano, Christopher [email protected]; Mention [email protected] Subject: [EXTERNAL] Re: [CrowdStrike/CRT] Characters not allowed (#22)

External Email. Do not click links or open attachments unless you trust the sender and content. Report suspicious emails using Report Phishing button or forward email to [email protected]mailto:[email protected]

Hi, I have the same issue and pulled the script from 2021-01-15.

We have an ampersand in our business namn, that might be the issue?

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/CrowdStrike/CRT/issues/22*issuecomment-760780097__;Iw!!BWcElQ!juwFn6eMEwCA0Kf05KOBacRIJsuhsncTCpbi7ZVpliH-HZ_7SNk50ScHcz9J63t_1u4q$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ASOTAS5W7GGDTOORIYESLCLS2ADMFANCNFSM4WBJDTTA__;!!BWcElQ!juwFn6eMEwCA0Kf05KOBacRIJsuhsncTCpbi7ZVpliH-HZ_7SNk50ScHcz9J68cYk6mw$.

The information contained in this electronic e-mail transmission and any attachments are intended only for the use of the individual or entity to whom or to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this communication is not the intended recipient, or the employee or agent responsible for delivering this communication to the intended recipient, you are hereby notified that any dissemination, distribution, copying or disclosure of this communication and any attachment is strictly prohibited. If you have received this transmission in error, please notify the sender immediately by telephone and electronic mail, and delete the original communication and any attachment from any computer, server or other electronic recording or storage device or medium. Receipt by anyone other than the intended recipient is not a waiver of any attorney-client, physician-patient or other privilege.

ctizz avatar Jan 15 '21 13:01 ctizz

I still have the issue. I've tried:

Unblocked the file Opened file in ISE Opened file in ISE and copy/pasted into a completely new file

All same error message.

lefty44 avatar Jan 15 '21 13:01 lefty44

Having the same error.

Tried locally, opening and saving as fresh file, and invoking from web using following command: Invoke-WebRequest 'https://github.com/CrowdStrike/CRT/blob/main/Get-CRTReport.ps1' -OutFile 'Get-CRTReport.ps1' -UseBasicParsing; .\Get-CRTReport.ps1

Get this error output

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. At C:\Users\Giotech\downloads\Get-CRTReport1.ps1:194 char:190

  • ... ata-ga-click="(Logged out) Header, go to Features">Features <span cla ...
  •                                                             ~
    

The '<' operator is reserved for future use. At C:\Users\Giotech\downloads\Get-CRTReport1.ps1:194 char:261

  • ... ="Bump-link-symbol float-right text-normal text-gray-light">→</s ...
  •                                                             ~
    

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. At C:\Users\Giotech\downloads\Get-CRTReport1.ps1:208 char:255

  • ... ogged out) Header, go to Customer stories">Customer stories <span cla ...
  •                                                             ~
    

The '<' operator is reserved for future use. At C:\Users\Giotech\downloads\Get-CRTReport1.ps1:208 char:326

  • ... ="Bump-link-symbol float-right text-normal text-gray-light">→</s ...
  •                                                             ~
    

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. At C:\Users\Giotech\downloads\Get-CRTReport1.ps1:209 char:231

  • ... ata-ga-click="(Logged out) Header, go to Security">Security <span cla ...
  •                                                             ~
    

The '<' operator is reserved for future use. At C:\Users\Giotech\downloads\Get-CRTReport1.ps1:209 char:302

  • ... ="Bump-link-symbol float-right text-normal text-gray-light">→</s ...
  •                                                             ~
    

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. At C:\Users\Giotech\downloads\Get-CRTReport1.ps1:232 char:222

  • ... a-click="(Logged out) Header, go to Explore">Explore GitHub <span cla ...
  •                                                             ~
    

The '<' operator is reserved for future use. At C:\Users\Giotech\downloads\Get-CRTReport1.ps1:232 char:293

  • ... ="Bump-link-symbol float-right text-normal text-gray-light">→</s ...
  •                                                             ~
    

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. At C:\Users\Giotech\downloads\Get-CRTReport1.ps1:235 char:107

  • ... text-normal text-mono f5 mb-2 border-lg-top pt-lg-3">Learn & con ...
  •                                                             ~
    

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. Not all parse errors were reported. Correct the reported errors and try again. + CategoryInfo : ParserError: (:) [], ParseException + FullyQualifiedErrorId : AmpersandNotAllowed

PeterGiotech avatar Jan 15 '21 14:01 PeterGiotech