Add whiptail

Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
master
LinuxSploit 2021-09-11 13:05:44 +05:00 committed by GitHub
parent f03907836c
commit eed609c376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

16
_gtfobins/whiptail.md Normal file
View File

@ -0,0 +1,16 @@
---
description: The file is shown in an interactive TUI dialog made for displaying text, arrows can be used to scroll long content.
functions:
file-read:
- code: |
LFILE=file_to_read
whiptail --textbox --scrolltext "$LFILE" 0 0
suid:
- code: |
LFILE=file_to_read
./whiptail --textbox --scrolltext "$LFILE" 0 0
sudo:
- code: |
LFILE=file_to_read
sudo whiptail --textbox --scrolltext "$LFILE" 0 0
---