From ed0922ee57bad9061cac54def29d92abe9ec7396 Mon Sep 17 00:00:00 2001 From: LinuxSploit <68427058+LinuxSploit@users.noreply.github.com> Date: Wed, 23 Jun 2021 12:01:37 +0500 Subject: [PATCH] Add expect file-read Co-authored-by: Andrea Cardaci --- _gtfobins/expect.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_gtfobins/expect.md b/_gtfobins/expect.md index ddbb7e7..da2fc10 100644 --- a/_gtfobins/expect.md +++ b/_gtfobins/expect.md @@ -1,5 +1,10 @@ --- functions: + file-read: + - description: The file is read and parsed as an `expect` command file, the content of the first invalid line is returned in an error message. Thus, this might not be suitable to read arbitrary binary files. + code: | + LFILE=file_to_read + expect $LFILE shell: - code: expect -c 'spawn /bin/sh;interact' suid: