diego-treitos / linux-smart-enumeration

Linux enumeration tool for pentesting and CTFs with verbosity levels
GNU General Public License v3.0
3.44k stars 574 forks source link

Suggestion: Search for passwords in commonly used log files #43

Closed Reelix closed 3 years ago

Reelix commented 3 years ago

I recently came across a box that had the data of the su command (The users password) in the audit log which lse missed.

A simple grep -R 'comm="su"' /var/log/audit/audit.log* 2>/dev/null would have picked this up.

Might want to add this, and look for other commonly used log files that could also contain sensitive data in the future :)

diego-treitos commented 3 years ago

Thanks a lot for the suggestion. I will look into it although it is a bit unusual that a user have access to those log files.