Jan. 2, 2024, midnight | Christian Paez

DEV Community dev.to




Introduction


Welcome back, fearless hacker, to the Bandit challenges! In this level, we'll learn to exploit cron jobs and bashscript files.





Previous Flag



NvEJF7oVjkddltPSrdKEFOllh9V1IBcq





Exploring Cron Jobs


Our path to the next flag begins with exploring the cron jobs on the system. Let's list the contents of the /etc/cron.d/ directory:



ls -la /etc/cron.d/


This reveals the existence of a cron job named cronjob_bandit22.





Analyzing Cron Job Configuration


Let's examine the configuration of the cronjob_bandit22:



cat /etc/cron.d/cronjob_bandit22


The output …

back bandit challenges cron ctf directory etc exploit files flag hacker introduction jobs learn list next overthewire path system writeup

Azure DevSecOps Cloud Engineer II

@ Prudent Technology | McLean, VA, USA

Security Engineer III - Python, AWS

@ JPMorgan Chase & Co. | Bengaluru, Karnataka, India

SOC Analyst (Threat Hunter)

@ NCS | Singapore, Singapore

Managed Services Information Security Manager

@ NTT DATA | Sydney, Australia

Senior Security Engineer (Remote)

@ Mattermost | United Kingdom

Penetration Tester (Part Time & Remote)

@ TestPros | United States - Remote