Searching for Passwords

Using Keywords

  • Passwords: password, pwd, credentials, passkeys.
  • Usernames: username, user account, creds.
  • Configuration: dbcredential, dbpassword, config.

Useful Tools and Commands

Lazagne

Extracts creds stored in common applications (browsers, FTP clients...):
txt
start lazagne.exe all

Findstr

txt
findstr /SIM /C:"password" *.txt *.ini *.cfg *.config *.xml *.git *.ps1 *.yml *.bat

Common Directories and Files

  • SYSVOL Share: passwords in Group Policies.
  • Scripts: .ps1, .bat, or .sh on IT shares.
  • Common files: unattend.xml, web.config, pass.txt, passwords.docx, passwords.xlsx.