Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 747 Bytes

Bandit_Level_21.md

File metadata and controls

17 lines (9 loc) · 747 Bytes

Bandit Level 21

For this level we are told to look at a program that is running at regular intervals and that looking in /etc/cron.d might help.

When we look at the contents of /etc/cron.d we can see 4 crondjobs. Three of these are of interest.

0ec1d8ef.png

Looking at the contents of cronjob_bandit22 shows us this:

463e0a99.png

This cronjob runs a program located at /usr/bin/cronjob_bandit22.sh. Running this ourselves gives us the following output.

08b9b26f.png

We can see the program is trying to access a file named /tmp/t7O6lds9S0RqQh9aMcz6ShpAoZKF7fgv. Looking at the contents of this file reveals the password: WdDozAdTM2z9DiFEQ2mGlwngMfj4EZff