-
Notifications
You must be signed in to change notification settings - Fork 4
/
NameFinder.py
31 lines (31 loc) · 1.02 KB
/
NameFinder.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
import requests
from sys import argv
from colorama import Fore
from banner import banner
banner()
try:
print(f' Wordlist : {argv[1]}')
print(f' Country Code: {argv[2]}')
except IndexError:
print('usege: python3 NameFinder.py <wordlist> <country_code> ')
exit()
open_file = open(argv[1], 'r').readlines()
White = Fore.LIGHTWHITE_EX
Green = Fore.LIGHTGREEN_EX
Red = Fore.LIGHTRED_EX
try:
for i in open_file:
Number = i.strip()
url = f'http://146.148.112.105/caller/index.php/UserManagement/search_number?number={Number}&country_code={argv[2]}'
name = requests.get(url)
data = name.json()
try:
for j in data['result']:
number = j['number']
name = j['name']
print(f'{White}[{Green}*{White}] {number} : {Green} {name} ')
except:
print(f'{White}[{Red}!{White}] Number Not Found: {Red}{number}')
except KeyboardInterrupt:
print(f'{White}[{Red}!{White}] Session Closed')
exit()