## linux ```bash find / -name proof.txt 2>/dev/null find / -xdev -type f -print0 | xargs -0 grep -H "BEGIN RSA PRIVATE KEY" grep -Ri password . grep -iE -rn Grep -RHEi '(username|password)' ``` ## windows ```bash find . -iname "*.config" 2>/dev/null dir /a /s /b c:\"proof.txt" //查找proof.txt文件(/a表示查看隐藏文件) type c:\users\administrator\desktop\proof.txt dir /s xxx.exe //找文件位置 type "C:\Documents and Settings\Administrator\Desktop\proof.txt" type proof.txt //显示文件内容 ``` ## find diffcult ```bash ls -aln |sort -r -n |head ``` ### find writeable ``` Get-ChildItem -Recurse | Get-Acl | out-string -stream | select-string -pattern "everyone" ```