1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00

Add expect file-read

Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
LinuxSploit 2021-06-23 12:01:37 +05:00 committed by GitHub
parent dab2e88a30
commit ed0922ee57
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,10 @@
--- ---
functions: 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: shell:
- code: expect -c 'spawn /bin/sh;interact' - code: expect -c 'spawn /bin/sh;interact'
suid: suid: