Skip to main content

🕵️ Forensics

Windows

PathDescription
C:\boot.iniBoot options

Linux

System

PathDescription
/etc/hostnameHostname
/etc/timezoneTimezone
/etc/hostsHosts file
/etc/os-releaseOS info
/home/USER/.bashrcBash configuration for a user
/etc/issueMessage printed before login
/etc/profileSystem-wide configuration file
/proc/versionLinux kernel version

Authentication

PathDescription
/etc/sudoersAdmin users
/etc/passwdUsers information
/etc/groupGroups information
/etc/shadowPassword information for system's users

Logs

PathDescription
/var/log/auth.logAuthentication logs
/var/log/syslogSystem logs
/var/log/SERVICEOther apps logs
/var/log/dmessageGlobal system messages
/etc/crontabCron jobs
/etc/init.dServices
/home/USER/.viminfoVim history
/home/USER/.bash_historyBash history for a user
/root/.bash_historyBash history for root user
/var/mail/rootEmails for root user

Read commands executed with sudo privileges

cat /var/log/auth.log | grep COMMAND

Metadata

PDF

pdfinfo <pdf>

Images

Show all metadata

exiftool <image>
exiftool image.jpg

exiv2 -pt <image>
exiv2 -pt image.jpg

Edit or update an existing field

exiv2 -M'set <field> <value>' <image>