Skip to content

Instantly share code, notes, and snippets.

@arnydo
Last active September 19, 2019 19:46
Show Gist options
  • Save arnydo/0d6c1314c137cc5a905088c07371e47e to your computer and use it in GitHub Desktop.
Save arnydo/0d6c1314c137cc5a905088c07371e47e to your computer and use it in GitHub Desktop.
Quickly check domain breaches against DeHashed
function check-dehashed ($dom) {
$url = "https://dehashed.com/search?query=%22{0}%22" -f $dom
($(iwr $url).AllElements | ?{$_.class -eq "d-block text _500"})[0] | select @{name="Domain";E={$dom}},@{Name="Results";E={[int]$_.InnerText}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment