From f088906051ccc1e7ad520be56415fea5ece31046 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Tue, 16 Apr 2019 15:49:49 +0200 Subject: [PATCH] Fix sed file write --- _gtfobins/sed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_gtfobins/sed.md b/_gtfobins/sed.md index f31eed1..0627ba8 100644 --- a/_gtfobins/sed.md +++ b/_gtfobins/sed.md @@ -11,7 +11,7 @@ functions: file-write: - code: | LFILE=file_to_write - sed -n '1e exec sh 1>&0 /etc/hosts + sed -n "1s/.*/DATA/w $LFILE" /etc/hosts file-read: - code: | LFILE=file_to_read