Searching for Passwords in Files
findstr /SIM /C:"password" *.txt *ini *.cfg *.config *.xmlgc 'C:\Users\htb-student\AppData\Local\Google\Chrome\User Data\Default\Custom Dictionary.txt' | Select-String password(Get-PSReadLineOption).HistorySavePathgc (Get-PSReadLineOption).HistorySavePath$credential = Import-Clixml -Path 'C:\scripts\pass.xml'cd c:\Users\htb-student\Documents & findstr /SI /M "password" *.xml *.ini *.txtfindstr /si password *.xml *.ini *.txt *.configfindstr /spin "password" *.*select-string -Path C:\Users\htb-student\Documents\*.txt -Pattern passworddir /S /B *pass*.txt == *pass*.xml == *pass*.ini == *cred* == *vnc* == *.config*where /R C:\ *.configGet-ChildItem C:\ -Recurse -Include *.rdp, *.config, *.vnc, *.cred -ErrorAction Ignore
Last updated