# config-file-search

## Search application config files

```
findstr /SIM /C:"password" *.txt *.ini *.cfg *.config *.mdb *.sql *.xml *.ccache
```

## Manually searching the file system for credentials

```
cmd /c cd c:\Users\%USERNAME%\Documents & findstr /SI /M "password" *.xml *.ini *.txt
```

```
findstr /sj password  *.xml *.ini *.txt *.config *.ini *cred* *vnc* *.conf
```

```
findstr /spin "password" *.*
```

```
cmd /c dir /S /B *pass*.txt == *pass*.xml == *pass*.ini == *cred* == *vnc* == *.config*
```

```
where /R C:\ *.config
```

## Searching file content with powershell

```
cmd /c select-string -Path C:\Users\%USERNAME%\Documents\*.txt -Pattern password
```

```
Get-ChildItem C:\ -Recurse -Include *.rdp, *.config, *.vnc, *.cred -ErrorAction  <space> Ignore
```

***
