Skip to main content

Posts

Showing posts with the label Bandit 23

Over the Wire - Bandit 23

Bandit 23 Objectives Level GoalA 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. NOTE:  Looking at shell scripts written by other people is a very useful skill. The script for this level is intentionally made easy to read. If you are having problems understanding what it does, try executing it to see the debug information it prints. Solution ok so another level dealing with cron jobs lets see what files we have to work with ​bandit22@bandit:~$ ls Nothing in home directory let's check the cron.d bandit22@bandit:~$ ls /etc/cron.d cronjob_bandit22  cronjob_bandit23  cronjob_bandit24 cool so there is another cronjob_bandit23 let's check that file bandit22@bandit:~$ cat /etc/cron.d/cronjob_bandit23 @reboot bandit23 /usr/bin/cronjob_bandit23.sh  &> /dev/null * * * * * bandit23 /usr/bin/cronjob_bandit23.sh  &> /dev/