1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 06:31:33 +01:00
GTFOBins.github.io/_gtfobins/iptables-save
Andrea Cardaci 64c265afee Add iptables-save
Close #488.
2026-01-22 17:50:18 +01:00

14 lines
304 B
Plaintext

---
functions:
file-write:
- binary: false
code: |-
iptables -A INPUT -i lo -j ACCEPT -m comment --comment DATA
iptables -S
iptables-save -f /path/to/output-file
comment: |-
The content is written along with a number of `iptables` rules.
contexts:
sudo:
...