Avatar Image
Gajendra Mahato
Bandit Wargame

Bandit: Level 22 => Level 23

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. Here are the details which we have from the previous level: Host: bandit.labs.overthewire.org Port: 2220 Username: bandit22 Password: tRae0UfB9v0UzbCdn9cY0gQnds9GF58Q So, The SSH syntax will be: sshpass -p tRae0UfB9v0UzbCdn9cY0gQnds9GF58Q ssh [email protected] -p 2220 The cron jobs are usually stored in /etc/cron.d. We start by navigating to this directory. cd /etc/cron.d ls # Output: # cronjob_bandit22 cronjob_bandit23 cronjob_bandit24 e2scrub_all otw-tmp-dir sysstat Among these files, cronjob_bandit23 is interesting since it suggests a cron job for bandit23. ...

January 23, 2020 · 2 min