Skip to content

Commit fdc089e

Browse files
authoredSep 17, 2020
Add files via upload
1 parent 338cf4c commit fdc089e

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed
 

‎InfoG.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from utils import *
2+
tool_name()
3+
your_ip()
4+
print('''
5+
[1]Get website IP address
6+
7+
[2]IP lookup
8+
9+
[3]Phone no. lookup
10+
11+
''')
12+
try:
13+
command= input('InfoG> ')
14+
if command == '1':
15+
domain_name()
16+
elif command == '2':
17+
ip_lookup()
18+
elif command == '3':
19+
ph_num_lookup()
20+
else:
21+
print('Enter a valid command')
22+
23+
except KeyboardInterrupt:
24+
tool_name()

‎img_1.png

113 KB
Loading

‎requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
phonenumbers
2+
requests

‎utils.py

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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

Comments
 (0)
Please sign in to comment.