diff --git a/_gtfobins/expect.md b/_gtfobins/expect.md index ddbb7e7d..da2fc103 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: