Level Goal
A program is running automatically at regular intervals from cron, the time-based job scheduler. Look in /etc/cron.d/ for the configuration and see what command is being executed.
Commands you may need to solve this level
cron, crontab, crontab(5) (use “man 5 crontab” to access this)
0. bandit21 비밀번호
gE269g2h3mw3pwgrj0Ha9Uoqen1c9D
1. 파일확인
bandit21@bandit:/etc/cron.d$ cat /usr/bin/cronjob_bandit22.sh
#!/bin/bash
chmod 644 /tmp/t7O6lds9S0RqQh9aMcz6ShpAoZKF7fgv
cat /etc/bandit_pass/bandit22 > /tmp/t7O6lds9S0RqQh9aMcz6ShpAoZKF7fgv
bandit21@bandit:/tmp$ cat /tmp/t7O6lds9S0RqQh9aMcz6ShpAoZKF7fgv
Yk7owGAcWjwMVRwrTesJEwB7WVOiILLI
문제의내용대로 해당경로의 파일 확인결과 bandit22의 비밀번호를 /tmp의 파일에 저장한다. 해당파일을 참조시 bandit22의 비밀번호가나온다.
2. bandit22 비밀번호
Yk7owGAcWjwMVRwrTesJEwB7WVOiILLI