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

CyberSOC Technical Lead

@ Integrity360 | Sandyford, Dublin, Ireland

Cyber Security Strategy Consultant

@ Capco | New York City

Cyber Security Senior Consultant

@ Capco | Chicago, IL

Sr. Product Manager

@ MixMode | Remote, US

Corporate Intern - Information Security (Year Round)

@ Associated Bank | US WI Remote

Senior Offensive Security Engineer

@ CoStar Group | US-DC Washington, DC