Skip to content

Commit

Permalink
Add expect file-read
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Cardaci <[email protected]>
  • Loading branch information
GopherGhaznix and cyrus-and authored Jun 23, 2021
1 parent dab2e88 commit ed0922e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _gtfobins/expect.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit ed0922e

Please sign in to comment.