-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathosint.py
401 lines (355 loc) · 13.1 KB
/
osint.py
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
import requests
import os
import platform
print("[*] Checking Required Packages: - \n")
print("[*] Checking Requirements Module")
if platform.system().startswith("Linux"):
try:
import requests
except ImportError:
os.system("python3 -m pip install requests -q -q -q")
import requests
try:
import pyfiglet
except ImportError:
os.system("python3 -m pip install pyfiglet -q -q -q")
import pyfiglet
try:
import termcolor
except ImportError:
os.system("python3 -m pip install termcolor -q -q -q")
import termcolor
from termcolor import colored
try:
from pystyle import *
except:
os.system("python3 -m pip install pystyle -q -q -q")
from pystyle import *
try:
import colorama
from colorama import Fore, Back, Style
except ImportError:
os.system("python3 -m pip install colorama -q -q -q")
import colorama
from colorama import Fore, Back, Style
try:
import pyuseragents as pyuseragents
except:
os.system("python3 -m pip install pyuseragents -q -q -q")
import pyuseragents as pyuseragents
elif platform.system().startswith("Windows"):
try:
import requests
except ImportError:
os.system("python -m pip install requests -q -q -q")
import requests
try:
import termcolor
except ImportError:
os.system("python -m pip install termcolor -q -q -q")
import termcolor
try:
from pystyle import *
except:
os.system("python -m pip install pystyle -q -q -q")
from pystyle import *
try:
import colorama
from colorama import Fore, Back, Style
except ImportError:
os.system("python -m pip install colorama -q -q -q")
import colorama
from colorama import Fore, Back, Style
try:
import pyuseragents as pyuseragents
except:
os.system("python -m pip install pyuseragents -q -q -q")
import pyuseragents as pyuseragents
colorama.deinit()
banner = Center.XCenter("""
___ _ ____ _____ ____ _____ _ _ _ ____ _____ ______
/ / | | / ___|___ /| _ \ | ___/ | \ | | _ \| ____| _ \ \`
| || | | \___ \ |_ \| |_) |____| |_ | | \| | | | | _| | |_) | |
< < | |_| |___) |__) | _ <_____| _| | | |\ | |_| | |___| _ < > >
| | \___/|____/____/|_| \_\ |_| |_|_| \_|____/|_____|_| \_\ |
\_\ /_/
\n\n
""")
user_agent = pyuseragents.random()
blu = "\033[96m"
red = "\033[91m"
grn = "\033[32m"
ylw = "\033[93m"
res = "\033[0;m"
HEADER = '\033[95m'
lred = "\033[2;31;5m"
def facebook(target):
url=f"https://www.facebook.com/{target}"
inp = requests.get(f"{url}").text
if "The link you followed may be broken" in inp:
print(f" {ylw}[ {red}✖{ylw} ] {red}Facebook Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Facebook Found: {url}")
def tiktok(target):
url=f"https://www.tiktok.com/{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}TikTok Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Tiktok Found: {url}")
def youtube(target):
url=f"https://www.youtube.com/{target}"
inp = requests.get(f"{url}").text
if "Not Found" in inp:
print(f" {ylw}[ {red}✖{ylw} ] {red}YouTube Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}YouTube Found: {url}")
def blogspot(target):
url = f"https://{target}.blogspot.com"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Blogspot Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Twitter Found: {url}")
def twitter(target):
inp = {"input": target}
header = {"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"x-requested-with": "XMLHttpRequest"}
inp = requests.post(f"https://tweeterid.com/ajax.php", data=inp, headers=header).text
if "error" in inp:
print(f" {ylw}[ {red}✖{ylw} ] {red}Twitter Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Twitter Found: {target}")
def mix(target):
url="https://mix.com/"
inp = requests.get(f"{url}{target}").status_code
if inp == 301:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Mix Found: {url}")
else:
print(f" {ylw}[ {red}✖{ylw} ] {red}Mix Not Found")
def basecamp(target):
url="https://launchpad.37signals.com/session/profile?username="
inp = requests.get(f"{url}{target}").text
if 'password' in inp:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Basecamp Found: {url}")
else:
print(f" {ylw}[ {red}✖{ylw} ] {red}Basecamp Not Found")
def wordpress(target):
url=f"https://{target}.wordpress.com"
inp = requests.get(f"{url}").text
if "Do you want to register" in inp:
print(f" {ylw}[ {red}✖{ylw} ] {red}Wordpress Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Wordpress Found: {url}")
def reddit(target):
url=f"https://en.reddit.com/user/{target}"
header = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"}
inp = requests.get(f"{url}/about.json?jsonp=_jqjsp&_1661423588377=",
headers=header).status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Reddit Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Reddit Found: {url}")
def github(target):
url=f"https://www.github.com/{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Github Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Github Found: {url}")
def pintrest(target):
url=f"https://www.pinterest.com/{target}"
inp = requests.get(f"{url}", allow_redirects=False).status_code
if inp == 301:
print(f" {ylw}[ {red}✖{ylw} ] {red}Pinterest Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Pinterest Found: {url}")
def vimeo(target):
url=f"https://vimeo.com/{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Vimeo Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Pinterest Found: {url}")
def med(target):
url = f"https://medium.com/@{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Medium Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Medium Found: {url}")
def about(target):
url=f"https://about.me/{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}About Me Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}About me Found: {url}")
def spot(target):
url=f"https://open.spotify.com/user/{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Spotify Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Spotify Found: {url}")
def scribd(target):
url=f"https://www.scribd.com/{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Scrbid Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Scrbid Found: {url}")
def bit(target):
url=f"https://bitbucket.org/{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}BitBucket Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}BitBucket Found: {url}")
def daily(target):
url=f"https://www.dailymotion.com/{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Daily Motion Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Daily Motion Found: {url}")
def cash(target):
url=f"https://cash.me/{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Cash Me Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Cash Me Found: {url}")
def keybase(target):
url=f"https://keybase.io/{target}"
inp = requests.get(f"{url}").status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}keybase Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}keybase Found {url}")
def code(target):
url=f"https://www.codecademy.com/{target}"
inp = requests.get(f"{url}", headers={"user-agent": user_agent}).status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Code Academy Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Code Academy Found: {url}")
def paste(target):
url=f"https://pastebin.com/u/{target}"
inp = requests.get(f"{url}", headers={"user-agent": user_agent}).status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Pastebin Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Pastebin Found: {url}")
def wiki(target):
url=f"https://www.wikipedia.org/wiki/User:{target}"
inp = requests.get(f"{url}", headers={"user-agent": user_agent}).status_code
if inp == 404:
print(f" {ylw}[ {red}✖{ylw} ] {red}Wikipedia Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Wikipedia Found: {url}")
def ebay(target):
url=f"https://www.ebay.com/usr/{target}"
inp = requests.get(f"{url}", headers={"user-agent": user_agent}).text
if "The User ID you entered was not found. Please check the User ID and try again." in inp:
print(f" {ylw}[ {red}✖{ylw} ] {red}Ebay Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Ebay Found: {url}")
def slack(target):
url=f"https://{target}.slack.com"
inp = requests.get(f"{url}", headers={"user-agent": user_agent}).status_code
if inp != 200:
print(f" {ylw}[ {red}✖{ylw} ] {red}Slack Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Slack Found: {url}")
def proton(target):
url=f"https://account.protonmail.com/api/users/available?Name={target}"
inp = requests.get(f"{url}",
headers={"user-agent": user_agent}).status_code
if inp != 200:
print(f" {ylw}[ {red}✖{ylw} ] {red}ProtonVPN Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}ProtonVPN Found: {url}")
def xbox(target):
url=f"https://playerdb.co/api/player/xbox/{target}"
inp = requests.get(f"{url}", headers={"user-agent": user_agent}).status_code
if inp != 200:
print(f" {ylw}[ {red}✖{ylw} ] {red}Xbox Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Xbox Found: {url}")
def hackernews(target):
url=f"https://news.ycombinator.com/user?id={target}"
inp = requests.get(f"{url}", headers={"user-agent": user_agent}).text
if "No such user." in inp:
print(f" {ylw}[ {red}✖{ylw} ] {red}Hacker News Not Found")
else:
print(f" {ylw}[ {grn}✔{ylw} ] {grn}Hacker News Found: {url}")
def catc():
try:
if platform.system().startswith("Windows"):
print("\033c")
print(Colorate.Vertical(Colors.green_to_yellow, banner, 2))
target = input(Fore.GREEN+'[*] Enter Username:- ')
tiktok(target)
youtube(target)
blogspot(target)
twitter(target)
mix(target)
basecamp(target)
reddit(target)
github(target)
pintrest(target)
vimeo(target)
med(target)
about(target)
spot(target)
scribd(target)
bit(target)
daily(target)
cash(target)
keybase(target)
code(target)
paste(target)
wiki(target)
ebay(target)
slack(target)
proton(target)
xbox(target)
hackernews(target)
else:
print("\033c")
print(Colorate.Vertical(Colors.green_to_yellow, banner, 2))
target = target = input(Fore.GREEN+'[*] Enter Username:- ')
tiktok(target)
youtube(target)
blogspot(target)
twitter(target)
mix(target)
basecamp(target)
reddit(target)
github(target)
pintrest(target)
vimeo(target)
med(target)
about(target)
spot(target)
scribd(target)
bit(target)
daily(target)
cash(target)
keybase(target)
code(target)
paste(target)
wiki(target)
ebay(target)
slack(target)
proton(target)
xbox(target)
hackernews(target)
except KeyboardInterrupt:
print()
print(termcolor.colored("\nYou Pressed The Exit Button!",'red'))
quit()
catc()