credential-hunting
Automatic cred enum
laZagne.pyGet mysql database credentials
cat $(find / -name wp-config.php 2>/dev/null) | grep 'DB_USER\|DB_PASSWORD'Get config files
find / ! -path "*/proc/*" -iname "*config*" -type f 2>/dev/nullGet ssh keys
ls ~/.sshConfig file hunting
for l in $(echo ".conf .config .cnf");do echo -e "\nFile extension: " $l; find / -name *$l 2>/dev/null | grep -v "lib\|fonts\|share\|core" ;doneCredentials in config file
for i in $(find / -name *.cnf 2>/dev/null | grep -v "doc\|lib");do echo -e "\nFile: " $i; grep "user\|password\|pass" $i 2>/dev/null | grep -v "\#";doneInteresting strings inside file
Database file
Note files
Hunt scripts files
Hunt private SSH keys
Bash history
Log files
Last updated