From 098c8a523db3de297071c00d086e4741a70d0303 Mon Sep 17 00:00:00 2001 From: Caleb Stewart Date: Tue, 1 Sep 2020 22:23:55 -0400 Subject: [PATCH] Fixed a fat-finger mistake Had the wrong argument for spec since I expanded sudoers to enumerate multi-command rules. Fixed here. --- pwncat/modules/escalate/sudo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwncat/modules/escalate/sudo.py b/pwncat/modules/escalate/sudo.py index 49c612a..eaa15fe 100644 --- a/pwncat/modules/escalate/sudo.py +++ b/pwncat/modules/escalate/sudo.py @@ -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])"