2025-12-08 / Log: enumerating_processes_cron_jobs

Enumerating Processes & Cron Jobs

Enumerating Processes & Cron Jobs

Classification: Host & Network Penetration Testing / Post-Exploitation
Target: Linux host (root Meterpreter via vsFTPd)

1. Executive Summary

After exploiting the vsFTPd backdoor and upgrading to Meterpreter, we enumerate the host’s running processes and scheduled cron jobs — a key post-exploitation step for finding privileged processes and abusable scheduled tasks.

2. Foothold

use exploit/unix/ftp/vsftpd_234_backdoor
# ... shell -> shell_to_meterpreter

Root Meterpreter via vsFTPd

3. Enumerating Processes

ps aux

Running processes (ps)

Filtering for specific PIDs/processes.

Specific process details

top

top — live process list

4. Enumerating Cron Jobs

ls -al /etc/cron*
cat /etc/crontab

The cron directories (/etc/cron.d, /etc/cron.daily, …) list scheduled jobs — check them for user-writable scripts run as root.

/etc/cron* listing (1)

cron contents (2)

5. Notes & Remediation

  1. World-writable scripts invoked by root cron are a common privesc vector — keep cron scripts root:root and non-writable by others.
  2. Monitor for unexpected processes and cron modifications (auditd / file integrity).