Note: See many, many commands from the Linux privesc post.
Analyze logs
On systems: Browse through the /var/log files.
On newer systems with systemd:
- See all recent logs:
journalctl - See all logs from a service:
journalctl -t sudo - See all logs from a service within a timeframe:
journalctl -t ssh --since 2025-01-01 --until 2025-02-02
Note: If you have an image, you can also analyze logs from a mounted image like journalctl --root /mnt/hdd23 -t ssh ...
Analyze startup services
On SysVinit: Browse through /etc/init.d/
On systemd: Browse through /etc/systemd/
Leave a Reply
You must be logged in to post a comment.