peass-ng / PEASS-ng

PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)
https://book.hacktricks.xyz
Other
15.73k stars 3.05k forks source link

Curl to Bash returns "Unexpected EOF" #342

Closed Sp0kane closed 1 year ago

Sp0kane commented 1 year ago

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

  1. Open a terminal in Ubuntu 22.04.2 LTS
  2. Run curl -s -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | bash
  3. 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 """

Sp0kane commented 1 year ago

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 """

Sp0kane commented 1 year ago

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.

carlospolop commented 1 year ago

is this still hapening with the latest versions @Sp0kane ?