Hacking challenges › The Terminal
Learning route · 7 challenges
>_ The Terminal
Getting around a Linux system as if it were home: files, permissions, searches and how privileges get escalated.
⚠ For educational purposes only. A simulation for strictly educational purposes. Everything happens in your browser against made-up machines: it doesn't connect to any real system. Using these techniques against computers or networks without their owner's written permission is a crime (articles 197 bis and 264 of the Spanish Criminal Code). Learn in order to defend.
The basics before you start
In Linux almost everything can be read as text: configs, logs, users (/etc/passwd). ls lists, cd goes in, cat reads. Files starting with a dot are hidden: ls -a shows them.
grep searches for text inside files (grep -r across whole folders) and find searches for files by name or owner. With | you chain commands: cat log | grep error | sort | uniq -c.
Every file has an owner and read, write and execute permissions. root can do anything. What you can't read as your user is what's worth protecting… and what an attacker is after.
Getting in as a normal user isn't the end: an attacker looks for forgotten passwords, misconfigured sudo (sudo -l) or programs that spawn a shell. Defending means granting the minimum permissions.
Challenges, from easiest to hardest
FAQ
What do you learn on the Hacklab's Terminal route?
Getting around a Linux system like it's home: files, permissions, searches and how privileges get escalated. Concepts: everything is a file, search instead of looking, permissions, escalating privileges.
How many challenges are on The Terminal route?
7 challenges ordered from easy to elite. Complete them all to earn the route badge.