Bait A Phish
Bait A Phish
Security Pulse
tutorial · bandit

Bandit Level 22

Read /etc/cron.d, inspect the job script, and find where it writes the next password.
banditcronscripting
Narration (cached)
Marks this level complete in your browser.

Goal

A program runs automatically via cron. Look in /etc/cron.d/ to find what command executes.

Hints

Solution (click to reveal)
  1. SSH in:
ssh bandit22@bandit.labs.overthewire.org -p 2220
  1. Inspect cron definitions:
ls -la /etc/cron.d
cat /etc/cron.d/*
  1. Find the referenced script and read it:
cat /usr/bin/cronjob_bandit22.sh
  1. The script will write the next password somewhere (often under /tmp). Read that file.

Notes

Bandit Level 21Bandit Level 23