A shell script written in Expect that makes the process of connecting to OverTheWire levels quicker and more convenient.
- Automates SSH login to remote OTW levels.
- Stores the level passwords you've uncovered in a local file.
- Connect to a level and start working by simply providing the level name (if the level's password has been stored; otherwise just enter it when prompted during the connection process).
usage: ./otw.tcl [-h] [-p PASSWORD] [-l] LEVEL
# Connects to the OTW bandit 0 level via SSH, prompting for the
# level's password during the connection process.
./otw.tcl bandit0
# Stores a (p)assword for the OTW bandit 0 (l)evel so that
# connecting to the level does not prompt for a password.
./otw.tcl -p bandit0 -l bandit0 <---- Do this once.
./otw.tcl bandit0 <------------------ And from now on this will
connect automatically to
the level.