r015

haveibeenpwned.com tools

Jul 29th, 2021
1,202
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #rois ganteng
  3. cyan='\033[0;36m'
  4. green='\e[92m'
  5. red='\033[0;31m'
  6. ijo="\e[92m"
  7. putih="\e[97m"
  8. apikey="cb19814b86164e24b738ee07fb2332a8"
  9. function ngecek() {
  10.    check=`curl -s -X $'GET' 'https://haveibeenpwned.com/api/v3/breachedaccount/'$1'' \
  11.                 -H $'Host: haveibeenpwned.com' \
  12.                 -H $'hibp-api-key: '${apikey}'' \
  13.                 -H $'Host: haveibeenpwned.com' \
  14.                 -H $'Sec-Ch-Ua: \"Chromium\";v=\"91\", \" Not;A Brand\";v=\"99\"' \
  15.                 -H $'Sec-Ch-Ua-Mobile: ?0' \
  16.                 -H $'Upgrade-Insecure-Requests: 1' \
  17.                 -H $'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36' \
  18.                 -H $'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \ | jq . | grep "Name" | wc -l`
  19.         if [[ "$check" == "0" ]] || [[ "$check" == "1" ]] || [[ "$check" == "2" ]] || [[ "$check" == "3" ]]; then
  20.                 echo -e "${ijo} [LIVE] ${putih} $1 = Total Pwned: ${check}"
  21.                 echo "$1" >> result-live.txt
  22.         else
  23.                 echo -e "${red} [LEAKED] ${putih} $1 = Total Pwned: ${check}"
  24.         fi
  25. }
  26. read -p "Your Email : " email
  27. persend="2"
  28. delay="1"
  29. hitung=0
  30.  
  31. IFS=$'\r\n' GLOBIGNORE='*' command eval 'list=($(cat $email))'
  32. for (( i = 0; i <"${#list[@]}"; i++ )); do
  33.   emails="${list[$i]}"
  34.   ngesend=$(expr $hitung % $persend)
  35.   if [[ $ngesend == 0 && $hitung > 0 ]]; then
  36.     sleep $delay
  37.   fi
  38.  
  39.   ngecek $emails
  40.     hitung=$[$hitung+1]
  41. done
  42. wait
RAW Paste Data