1
0
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:
Caleb Stewart 2020-09-01 22:23:55 -04:00
parent 8d5e91a6a7
commit 098c8a523d

View File

@ -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])"