From 740fa3a44fedb61eee837df3cc2feda4ef8c3104 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Wed, 4 Dec 2019 02:25:49 +0100 Subject: [PATCH] Reword screen and use echo instead of tail with user interaction Based on an example provided by #76. --- _gtfobins/screen.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/_gtfobins/screen.md b/_gtfobins/screen.md index f283ad5..8dbd39c 100644 --- a/_gtfobins/screen.md +++ b/_gtfobins/screen.md @@ -3,18 +3,14 @@ functions: shell: - code: screen file-write: - - description: This has been found working on screen version 4.06.02. The file has a trailing `^C` character. + - description: This works on screen version 4.06.02. Data is appended to the file and `\n` is converted to `\r\n`. code: | LFILE=file_to_write - screen -L -Logfile $LFILE tail -f /dev/null - DATA - ^C - - description: This has been found working on screen version 4.05.00. The file has a trailing `^C` character. + screen -L -Logfile $LFILE echo DATA + - description: This works on screen version 4.05.00. Data is appended to the file and `\n` is converted to `\r\n`. code: | LFILE=file_to_write - screen -L $LFILE tail -f /dev/null - DATA - ^C + screen -L $LFILE echo DATA sudo: - code: sudo screen ---