fix linpeas

This commit is contained in:
Carlos Polop 2024-12-05 12:00:27 +01:00
parent 186e659080
commit 1e1a8a7c86

View File

@ -365,7 +365,7 @@ class LinpeasBuilder:
rb = requests.get(f"https://raw.githubusercontent.com/GTFOBins/GTFOBins.github.io/master/_gtfobins/{b}.md", timeout=5) rb = requests.get(f"https://raw.githubusercontent.com/GTFOBins/GTFOBins.github.io/master/_gtfobins/{b}.md", timeout=5)
if "sudo:" in rb.text: if "sudo:" in rb.text:
if len(b) <= 3: if len(b) <= 3:
sudoVB.append("[^a-ZA-Z0-9]"+b+"$") # Less false possitives applied to small names sudoVB.append("[^a-z-Z0-9]"+b+"$") # Less false possitives applied to small names
else: else:
sudoVB.append(b+"$") sudoVB.append(b+"$")
if "suid:" in rb.text: if "suid:" in rb.text: