Unix 05

This exercise is one of our challenges to help you learn more about Unix/Linux

PRO
Tier
Easy
< 1 Hr.
21274
Unix Badge

Course


This challenge focuses on understanding the `.bashrc` file, which is loaded whenever a user starts a new shell. The `.bashrc` file is often used to configure the shell, define command aliases, or set environment variables. These configurations can sometimes contain sensitive information such as credentials or API keys.

To efficiently search for specific patterns like the command alias `check_ptlab_key` within multiple users' `.bashrc` files, you will learn to use the `find` command with the `-exec` option. This allows you to automate the search process, making it less laborious to check each `.bashrc` file manually. Additionally, during a review, it's important to also inspect the `.bash_profile` file, which is loaded when users log in via a console.

Want to learn more? Get started with PentesterLab Pro! GO PRO