Curl to Bash returns "Unexpected EOF"
Sp0kane opened this issue · comments
If you are going to suggest something, please remove the following template.
Issue description
Executing curl -s -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | bash
on Ubuntu 22.04.2 LTS installation returns an error immediately after finishing Directory caching.
Like so:
"""
Caching directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DONE
bash: line 1466: unexpected EOF while looking for matching `"'
bash: line 1467: syntax error: unexpected end of file
"""
Steps to reproduce the issue
- Open a terminal in Ubuntu 22.04.2 LTS
- Run
curl -s -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | bash
- Profit.
Which parameters did you use for executing the script and how did you execute it?
See step two.
Is there any AV / Threat protection in the system?
No.
Please, indicate the OS, the OS version, and the kernel version (build number in case of Windows)
Linux REDACTED 5.19.0-35-generic #36~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 17 15:17:25 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Additional details / screenshot
"""
Caching directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DONE
bash: line 1466: unexpected EOF while looking for matching `"'
bash: line 1467: syntax error: unexpected end of file
"""
Running curl -s -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh|sh
instead produces
"""
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . sh: 1475: Syntax error: Unterminated quoted string
"""
Aaand curl -s -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh
runs without errors.
Note the spaces around the pipe.
is this still hapening with the latest versions @Sp0kane ?