1
+ import socket
2
+ import phonenumbers
3
+ import requests
4
+ from phonenumbers import geocoder
5
+
6
+ def tool_name ():
7
+ print ('''
8
+ ___ ____________
9
+ |%%%| |@@@@@@@@@@@@|
10
+ |%%%| ____ ___ _________ ____________ |@@@@________|
11
+ |%%%| |%%%%\ |%%%| |%%% _____| |%%%______%%%| |@@@|
12
+ |%%%| |%%%%%\ |%%%| |%%%|_____ |%%| |%%| |@@@| ___
13
+ |%%%| |%%%%%%\ |%%%| |%%%_____| |%%| |%%| |@@@| |@@@|
14
+ |%%%| |%%%|\%%\ |%%%| |%%%| |%%| |%%| |@@@|______|@@@|
15
+ |%%%| |%%%| \%%\ |%%%| |%%%| |%%|______|%%| |@@@@@@@@@@@@@@|
16
+ |___| |___| \_______| |___| |____________| |______________|By: Tech-Sec
17
+ For more visit: https://github/Tech-Sec
18
+ ''' )
19
+
20
+
21
+ def domain_name ():
22
+ print (socket .gethostbyname (input ('Domain name: ' )))
23
+
24
+
25
+ def your_ip ():
26
+ your_ip = requests .get ('https://geolocation-db.com/json/' ).json ()
27
+ print ('Your public IP address: ' ,your_ip .get ('IPv4' ))
28
+ hostname = socket .gethostname ()
29
+ ip_address = socket .gethostbyname (hostname )
30
+ print ('Your device name: ' ,hostname )
31
+ print ('Your private IP address ' ,ip_address )
32
+
33
+
34
+ def ip_lookup ():
35
+ enter_ip = input ('IP Address: ' )
36
+ response = requests .get (f"https://geolocation-db.com/json/{ enter_ip } &position=true" ).json ()
37
+ for key , value in response .items ():
38
+ print (key , ' : ' , value )
39
+
40
+
41
+ def ph_num_lookup ():
42
+ your_ph_num = input ('Your Number: ' )
43
+ phone_number = phonenumbers .parse (your_ph_num )
44
+ # put your phonenumber with the country code eg:+1xxxxxxxx
45
+ print (geocoder .description_for_number (phone_number ,
46
+ 'en' ))
47
+
48
+
49
+ from phonenumbers import carrier
50
+ service_provider = phonenumbers .parse (your_ph_num )
51
+ # put your phonenumber with the country code eg:+1xxxxxxxx
52
+ print (carrier .name_for_number (service_provider ,
53
+ 'en' ))
0 commit comments