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