mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-27 10:54:14 +01:00
Fixed a fat-finger mistake
Had the wrong argument for spec since I expanded sudoers to enumerate multi-command rules. Fixed here.
This commit is contained in:
parent
8d5e91a6a7
commit
098c8a523d
@ -53,7 +53,7 @@ class Module(EscalateModule):
|
||||
command, caps=Capability.SHELL
|
||||
):
|
||||
user = "root" if rule.runas_user == "ALL" else rule.runas_user
|
||||
yield GTFOTechnique(user, self, method, spec=rule.command)
|
||||
yield GTFOTechnique(user, self, method, spec=command)
|
||||
|
||||
def human_name(self, tech: "Technique"):
|
||||
return f"[cyan]{tech.method.binary_path}[/cyan] ([red]sudo[/red])"
|
||||
|
Loading…
Reference in New Issue
Block a user