Skip to content

Commit

Permalink
Less false possitives applied to small names
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospolop committed Sep 24, 2024
1 parent faf6be5 commit 7a9ea40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion linPEAS/builder/src/linpeasBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,10 @@ def __get_gtfobins_lists(self) -> tuple:
except:
rb = requests.get(f"https://raw.githubusercontent.com/GTFOBins/GTFOBins.github.io/master/_gtfobins/{b}.md", timeout=5)
if "sudo:" in rb.text:
sudoVB.append(b+"$")
if len(b) <= 3:
sudoVB.append("[^a-ZA-Z0-9]"+b+"$") # Less false possitives applied to small names
else:
sudoVB.append(b+"$")
if "suid:" in rb.text:
suidVB.append("/"+b+"$")
if "capabilities:" in rb.text:
Expand Down

0 comments on commit 7a9ea40

Please sign in to comment.