Unix 06

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

PRO
Tier
Easy
< 1 Hr.
20746
Unix Badge

In this challenge, you will log in with the username and password pentesterlab. The goal is to find a key stored in an environment variable defined using the export command in a .bashrc file. When users start a bash shell, the .bashrc file is loaded, and it can be used to define aliases and set environment variables, which may contain sensitive information like credentials or API secrets.

Given that the system has numerous users, manually checking each .bashrc file would be laborious. Instead, you will use the find command to locate all .bashrc files on the system. Then, you will use grep to search these files for the export command and further filter the results to find the specific environment variable PTLAB_KEY. This approach will efficiently pinpoint the required key and complete the challenge.

Want to learn more? Get started with PentesterLab Pro! GOPRO