blob: 81bb524ec84fa3b871b65ed7ff36e74b5c44bf90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#!/bin/bash
set x
declutter(){
rm breach.json
rm semibreach.json
rm breach.txt
rm pasteacc.json
rm semipaste.json
rm pasteacc.txt
}
header(){
echo " ___ _ ___ ";
echo " | _ \__ __ ___ _ ___ __| | |__ \ ";
echo " | _/\ V V / ' \/ -_) _\` | /_/ ";
echo " |_| \_/\_/|_||_\___\__,_| (_) ";
echo " ";
}
main(){
clear
header
echo "Enter your Email Address (For eg xyz@mail.com)"
read account
clear
header
echo ""
echo "Checking if you have been Pwned"
curl -s -o breach.json "https://haveibeenpwned.com/api/v2/breachedaccount/"$account""
curl -s -o pasteacc.json "https://haveibeenpwned.com/api/v2/pasteaccount/"$account""
#curl -s -o pwnedpassword.json "https://haveibeenpwned.com/api/v2/pwnedpassword/"$account""
clear
jq ".[]" breach.json > semibreach.json
jq .Title semibreach.json > breach.txt
jq ".[]" pasteacc.json > semipaste.json
jq .Title semipaste.json > pasteacc.txt
#jq ".[]" pwnedpassword.json > semipwnedpassword.json
#jq .Title semipwnedpassword.json > pwnedpassword.txt
header
echo ""
echo ""
echo -e "\e[1;97;44mYou Have Been Pwned at :\e[1;92;49m"
sed 's/\"//g' breach.txt
echo -e "\e[1;97;44mYou have been featured in these Pastes :\e[1;92;49m"
sed 's/\"//g' pasteacc.txt
#echo "Your Pwned Passwords are at :"
#sed 's/\"//g' pwnedpassword.txt
declutter
}
clear
main
|