From 66f60d7ef61cbecf93b96a833d09f88d1a6f4981 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Wed, 30 May 2018 11:42:55 +0200 Subject: [PATCH] Use variables in dd --- _gtfobins/dd.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/_gtfobins/dd.md b/_gtfobins/dd.md index 835d89d..a34f5b7 100644 --- a/_gtfobins/dd.md +++ b/_gtfobins/dd.md @@ -1,7 +1,11 @@ --- functions: file-read: - - code: dd if=file_to_read + - code: | + LFILE=file_to_read + dd if=LFILE file-write: - - code: echo "data" | dd of=file_to_write + - code: | + LFILE=file_to_write + echo "data" | dd of=$LFILE ---