Quantcast
Channel: foreach | Operating systems, scripting, PowerShell and security | jesusninoc.com
Viewing all articles
Browse latest Browse all 409

Searching the Registry: URLs

$
0
0

Write-Host “URLs:`n”
Get-ChildItem HKCU:\ -rec -ea SilentlyContinue | ForEach-Object {
Select-String “\b(ht|f)tp(s?)[^ ]*\.[^ ]*(\/[^ ]*)*\b” -input (Get-ItemProperty -Path $_.PsPath) -AllMatches | ForEach-Object {($_.matches)|Select-Object Value}
}

The post Searching the Registry: URLs appeared first on Scripting and Security.


Viewing all articles
Browse latest Browse all 409

Trending Articles