daily pastebin goal
87%
SHARE
TWEET

Untitled

a guest Jul 23rd, 2016 228 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. function get-breachedstatus() {
  2.     Param(
  3.         [Parameter(Mandatory = $true)][string]$email,
  4.         [AllowEmptyString()]$brief_report="$true"
  5.     )
  6.    
  7.     try{
  8.         if($brief_report) {
  9.         $url = "https://haveibeenpwned.com/api/v2/breachedaccount/" + $email + "?truncateresponse=true"
  10.         } else {
  11.         $url = "https://haveibeenpwned.com/api/v2/breachedaccount/" + $email
  12.         }
  13.     $result = invoke-restmethod "$url" -UserAgent "I_script_stuff checker 0.01"
  14.     return $result
  15.     } catch {
  16.     return $false
  17.     }
  18. }
  19.  
  20. function get-pastestatus() {
  21.     Param(
  22.         [Parameter(Mandatory = $true)][string]$email
  23.     )
  24.     try{
  25.     $url = "https://haveibeenpwned.com/api/v2/pasteaccount/" + $email
  26.     $result = invoke-restmethod $url -UserAgent "I_script_stuff checker 0.01"
  27.     return $result
  28.     } catch {
  29.     return $false
  30.     }
  31. }
  32.  
  33. function get-allbreaches() {
  34.     try{
  35.         $url = "https://haveibeenpwned.com/api/v2/breaches"
  36.  
  37.     $result = invoke-restmethod "$url" -UserAgent "I_script_stuff checker 0.01"
  38.     return $result
  39.     } catch {
  40.     return $false
  41.     }
  42. }
  43.  
  44.  
  45. function get-domainstatus() {
  46.     Param(
  47.         [Parameter(Mandatory = $true)][string]$domain,
  48.     )
  49.     try{
  50.     $url = "https://haveibeenpwned.com/api/v2/breach/" + $domain
  51.     $result = invoke-restmethod $url -UserAgent "I_script_stuff checker 0.01"
  52.     return $result
  53.     } catch {
  54.     return $false
  55.     }
  56. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top