← Learn
Dangerous
echo 'source /tmp/.profile.sh' >> ~/.bashrc

linux · bash · Advanced

Appends a line making every new interactive shell load a script from a world-writable directory. It survives reboots, runs with your privileges each time you open a terminal, and looks like ordinary shell customisation.

Signals to notice

  • Shell startup file modified to load external code
  • Source file lives in a world-writable directory
  • Executes on every new session

Think you can spot these under time pressure?

Start Training

More Persistence