Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error line 4958 linpeas.sh #338

Open
KWolfe84 opened this issue Feb 28, 2023 · 6 comments
Open

Syntax error line 4958 linpeas.sh #338

KWolfe84 opened this issue Feb 28, 2023 · 6 comments

Comments

@KWolfe84
Copy link

If you are going to suggest something, please remove the following template.

Issue description

While running this on an HTB machine I get this error, if I comment that line out it just changes what line it says the error is on. It happens after Searching Passwords inside logs (line 4879 in the code)
sh: 4958: Syntax error: Unterminated quoted string

Steps to reproduce the issue

  1. Happens
  2. Everytime
  3. I run it on soccer htb machine

Which parameters did you use for executing the script and how did you execute it?

If winpeas, did you use a clean or obfuscated winpeas, and for which architecture?

it's linpeas.sh

Is there any AV / Threat protection in the system?

I don't think so

Please, indicate the OS, the OS version, and the kernel version (build number in case of Windows)

I'm using Athena OS

Please, indicate the check that is failing and add a screenshot showing the problem

Screenshot from 2023-02-28 12-42-41

How did you expect it to work?

I was hoping for privilege escalation

Additional details / screenshot

I tried over nc and cat so far both produce same issue.

@carlospolop
Copy link
Collaborator

Hi @KWolfe84 , is this still happening with the latest version of linpeas?

@cbaTW
Copy link

cbaTW commented May 1, 2023

What a coincidence!

I got the same problem.
Linpeas on HackTheBox's machine: soccer

Screenshot 2023-05-02 01 34 30

With the latest linpeas version: 20230425-bd7331ea

@s1shed
Copy link

s1shed commented Jun 20, 2023

I cannot reproduce this with 20230618-1fa055b6

@panguin6010
Copy link

same issue, hack the box 'PC'

image

@moivica
Copy link

moivica commented Nov 3, 2023

have the same error for Searching passwords inside logs

Linpeas version: latest
OS - Ubuntu 23.04

Linux version 6.2.0-32-generic (buildd@lcy02-amd64-023) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.40) #32-Ubuntu SMP PREEMPT_DYNAMIC Mon Aug 14 10:03:50 UTC 2023
image

@BaelfireNightshd
Copy link

I've got the same problem.
From what I can tell it's saying that error about this line
search_for_regex "Defined Networking API token" "(dnkey-[a-z0-9=_\-]{26}-[a-z0-9=_\-]{52})"

Version: latest
OS: Ubuntu 22.04.3
Kernel: 5.15.0-88-generic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants