Tutorials
Guida Approfondita: Enumerating Running Processes in Linux
--- - ps
#enumeration#exploitation#post-exploitation#linux#metasploit
Guida Approfondita: Enumerating Running Processes in Linux
2️⃣ Tecniche di Enumerazione
🔎 Con Meterpreter
ps
pgrep nome_processo
🖥️ Con Bash/Linux
ps
ps aux
ps aux | grep msfconsole
ps aux | grep root
top
crontab -l
ls -la /etc/cron
cat /etc/cron
3️⃣ Approfondimenti
🔐 Sicurezza: Verificare se esistono processi inusuali o cron job malevoli può essere un indicatore di compromissione.
🛠️ Best Practice: Utilizzare comandi come ps e top per monitorare l'attività del sistema in tempo reale, specialmente su macchine esposte.
🎯 Contesto eJPT: Questa enumerazione è cruciale per identificare applicazioni in esecuzione che potrebbero avere vulnerabilità sfruttabili durante le fasi successive.
4️⃣ Script Bash per Automazione
bash
#!/bin/bash
echo "--- Process Enumeration ---"
ps aux
echo "--- Specific Process Check (msfconsole) ---"
ps aux | grep msfconsole
echo "--- User-based Process Check (root) ---"
ps aux | grep root
echo "--- Top Processes ---"
top -b -n 1
echo "--- Crontab ---"
crontab -l
echo "--- Cron Files ---"
ls -la /etc/cron
echo "--- Cron Contents ---"
cat /etc/cron