peass-ng / PEASS-ng

PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)

Home Page:https://book.hacktricks.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax error line 4958 linpeas.sh

KWolfe84 opened this issue · comments

commented

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.

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

commented

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

commented

I cannot reproduce this with 20230618-1fa055b6

same issue, hack the box 'PC'

image

commented

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

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