This PowerShell script scans all drives on your system for potential sensitive information, such as credit card numbers, social security numbers, email addresses, and API keys. The results are saved to a file (C:\ScanResults.txt
).
- Scans all logical drives on your system, matches common patterns for credit card numbers, social security numbers, email addresses, and more.
- Saves results to a specified output file. Filters only text-based files.
-
Clone repository, open PowerShell with administrative privileges.
-
Run the script using the following command:
.\ScanSensitiveData.ps1
-
Once the scan is complete, review the results in the C:\ScanResults.txt file.