A login script that ships your history
Every interactive shell on ops-02 makes a small HTTP request after each command. Find the startup file responsible, the shell variable it abuses, and where the data goes.
- Terminal mission
- Intermediate
- 3 questions
- 0 of 3 solved
Your goal
Your goalFind the login script that sends every command you type to an outside server.
The proxy shows ops-02 posting a few bytes to the same host every time an administrator types a command. It only happens in interactive shells.
Bash reads /etc/profile, everything in /etc/profile.d, /etc/bash.bashrc, and each user’s ~/.bashrc when a shell starts. Search those for anything that makes a network call.
What’s on screen
- Briefing
- the story: what happened and what evidence you were handed.
- Terminal
- the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
- Walkthrough
- the numbered path. Each step says what to type and what you should see. Hints open one at a time.
- Answer boxes
- under each question step. Type what you found and press Check.
Words to know
- HTTP
- Hypertext Transfer Protocol, how browsers and web servers talk
- IP
- Internet Protocol address, the number that identifies a machine on a network
- DNS
- Domain Name System, which turns names into addresses
ops-02 · Persistence hunting
Type help for the command list and objectives for your tasks. Everything runs in this browser.
Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.
Read first
More in Persistence hunting
The whole walkthrough
Every step in order: 288 words, about 2 min. It gives away every answer, so try the steps first.