← Learn
Dangerous
eval "$(cat ./bootstrap.txt)"

cross-platform · bash · Beginner

Executes the contents of a text file as shell code. A .txt extension implies data, but eval treats whatever it is handed as commands, so the file's contents run with your full privileges.

Signals to notice

  • eval executes file contents as shell commands
  • the .txt extension hides that this is executable input

Think you can spot these under time pressure?

Start Training

More Shell