another linpeas fix

This commit is contained in:
Carlos Polop
2024-12-05 17:49:44 +01:00
parent 1e1a8a7c86
commit 2a71da4bb2
4 changed files with 7 additions and 3 deletions

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)
if "sudo:" in rb.text:
if len(b) <= 3:
sudoVB.append("[^a-z-Z0-9]"+b+"$") # Less false possitives applied to small names
sudoVB.append("[^a-zA-Z0-9]"+b+"$") # Less false possitives applied to small names
else:
sudoVB.append(b+"$")
if "suid:" in rb.text: