githubEdit

Credentials in Files

Credentials in files

1) Cmd

Running these commands in the root of c:\ can produce enourmouse output.

findstr /si pass *.xml *.doc *.txt *.xls
findstr /si cred *.xml *.doc *.txt *.xls

2) Empire C2

powershell/collection/file_finder
powershell/collection/find_interesting_file
powershell/credentials/sessiongopher

3) Metasploit

Meterpreter

Search by file name from parent directory

search -d <Directory> -f <File>
search -d c:\\shares -f *password*

Modules

use post/windows/gather/enum_unattend
use post/windows/gather/credentials/chrome
use post/windows/gather/credentials/gpp
use post/windows/gather/enum_files

Search all modules

4) Powershell

5) SessionGopher

Last updated