Less false possitives applied to small names
This commit is contained in:
parent
faf6be53a8
commit
7a9ea40cbb
@ -364,6 +364,9 @@ class LinpeasBuilder:
|
|||||||
except:
|
except:
|
||||||
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:
|
||||||
|
sudoVB.append("[^a-ZA-Z0-9]"+b+"$") # Less false possitives applied to small names
|
||||||
|
else:
|
||||||
sudoVB.append(b+"$")
|
sudoVB.append(b+"$")
|
||||||
if "suid:" in rb.text:
|
if "suid:" in rb.text:
|
||||||
suidVB.append("/"+b+"$")
|
suidVB.append("/"+b+"$")
|
||||||
|
Loading…
Reference in New Issue
Block a user