This repository has been archived by the owner on Nov 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 126
/
namechk.sh
197 lines (182 loc) · 5.7 KB
/
namechk.sh
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
#!/bin/bash
echo ""
echo -e "███╗ ██╗ █████╗ ███╗ ███╗███████╗ ██████╗██╗ ██╗██╗ ██╗ ███████╗██╗ ██╗
████╗ ██║██╔══██╗████╗ ████║██╔════╝██╔════╝██║ ██║██║ ██╔╝ ██╔════╝██║ ██║
██╔██╗ ██║███████║██╔████╔██║█████╗ ██║ ███████║█████╔╝ ███████╗███████║
██║╚██╗██║██╔══██║██║╚██╔╝██║██╔══╝ ██║ ██╔══██║██╔═██╗ ╚════██║██╔══██║
██║ ╚████║██║ ██║██║ ╚═╝ ██║███████╗╚██████╗██║ ██║██║ ██╗██╗███████║██║ ██║
╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═╝"
echo ""
echo "Osint tool based on namechk.com for checking usernames on more than 100 websites."
echo ""
echo " Developed by HATI"
gettoken(){
curl -s -d "q=$1" "https://namechk.com/" | sed -e 's/[{}"]/''/g' | cut -d : -f 2 > token
token=$(cat token)
}
rmm()
{
touch token
touch verify
rm token
rm verify
exit
}
invp(){
echo ""
echo " [-] Invalid parameter"
echo ""
echo -e "\e[1m-------------------------------------------------------------------------------------\e[0m"
echo ""
echo " Examples:"
echo ""
echo " - Search available username:"
echo " ./namechk.sh <username> -au"
echo ""
echo " - Search available username on specifics websites:"
echo " ./namechk.sh <username> -au -co"
echo ""
echo " - Search available username list:"
echo " ./namechk.sh -l -fu"
echo ""
echo " - Search used username:"
echo " ./namechk.sh <username> -fu"
echo ""
echo " - Search used username on specifics websites:"
echo " ./namechk.sh <username> -fu -co"
echo ""
echo " - Search used username list:"
echo " ./namechk.sh -l -fu"
echo ""
}
found(){
if [ $verify == 0 ];then
profile=$(cat verify | sed -e 's/[{}"]/''/g' | cut -d , -f 5 | cut -d ":" -f 2,3)
echo -e "\e[1m-------------------------------------------------------------\e[0m"
echo -e " [+] Username found on: \e[1;32m${service[$cont]}\e[0m"
echo -e " [+] Profile url: \e[1;36m$profile\e[0m"
fi
}
available(){
if [ $verify != 0 ];then
profile=$(cat verify | sed -e 's/[{}"]/''/g' | cut -d , -f 5 | cut -d ":" -f 2,3)
echo -e "\e[1m-------------------------------------------------------------\e[0m"
echo -e " [+] Username available on: \e[1;32m${service[$cont]}\e[0m"
fi
}
verify(){
curl -s -d "service=${service[$cont]}&token=$token&fat=xwSgxU58x1nAwVbP6+mYSFLsa8zkcl2q6NcKwc8uFm+TvFbN8LaOzmLOBDKza0ShvREINUhbwwljVe30LbKcQw==" "https://namechk.com/services/check" > verify
verify=$(cat verify | sed -e 's/[{}"]/''/g' | cut -d , -f 2 | grep -c true)
}
websinput(){
echo ""
echo " [#] Enter webs for check:"
echo ""
read -p " " -a webs
echo ""
webslong=$(echo ${#webs[@]})
}
listinput(){
echo ""
echo " [#] Enter username list:"
echo ""
read -p " " -e list
echo ""
}
#------------------------------------------------------------------------------------------------START------------------------------------------------------------------------------------------------
service=(Facebook YouTube Twitter Instagram Blogger GooglePlus Twitch Reddit Ebay Wordpress Pinterest Yelp Slack Github Basecamp Tumblr Flickr Pandora ProductHunt Steam MySpace Foursquare OkCupid Vimeo UStream Etsy SoundCloud BitBucket Meetup CashMe DailyMotion Aboutme Disqus Medium Behance Photobucket Bitly CafeMom coderwall Fanpop deviantART GoodReads Instructables Keybase Kongregate LiveJournal StumbleUpon AngelList LastFM Slideshare Tripit Fotolog Vine PayPal Dribbble Imgur Tracky Flipboard Vk kik Codecademy Roblox Gravatar Trip Pastebin Coinbase BlipFM Wikipedia Ello StreamMe IFTTT WebCredit CodeMentor Soupio Fiverr Trakt Hackernews five00px Spotify POF Houzz Contently BuzzFeed TripAdvisor HubPages Scribd Venmo Canva CreativeMarket Bandcamp Wikia ReverbNation Wattpad Designspiration ColourLovers eyeem KanoWorld AskFM Smashcast Badoo Newgrounds younow Patreon Mixcloud Gumroad Quora)
arrlong=$(echo ${#service[@]})
cont=0
if [[ $1 != "-l" ]];then
if [[ -z $3 ]];then
while [ $cont -lt $arrlong ]; do
gettoken $1
verify
case $2 in
"-au")
available
;;
"-fu")
found
;;
*)
invp
rmm
esac
((cont++))
done
else
case $3 in
-co)
websinput
while [ $cont -lt $webslong ]; do
gettoken $1
verify
case $2 in
"-au")
available
;;
"-fu")
found
;;
*)
invp
rmm
esac
((cont++))
done
;;
*)
invp
rmm
;;
esac
fi
else
if [[ -z $3 ]];then
listinput
while read line;do
while [ $cont -lt $arrlong ];do
gettoken $line
verify
case $2 in
"-au")
available
;;
"-fu")
found
;;
*)
invp
rmm
esac
((cont++))
done
done < $list
else
websinput
listinput
while read line;do
while [ $cont -lt $webslong ]; do
gettoken $line
verify2
case $2 in
"-au")
available
;;
"-fu")
found
;;
*)
invp
rmm
esac
((cont++))
done
cont=0
done < $list
fi
fi
echo ""
rmm
exit