forked from Yousuf9963/IP-Shower
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathip-shower.py
108 lines (69 loc) · 2.91 KB
/
ip-shower.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
print("[+] Tool Name:IP-SHOWER")
print("[+] Author:Yousuf Shafi'i Muhammad. Junior Programmer")
print("[+] Version:1.0")
print("[+] Team:Junior Programmers")
print("[+] Github:https://github.com/SCSEA")
print("[+] Follow me on Github: https://github.com/SCSEA")
print("[!] legal disclaimer: Usage of this Program for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.")
print("Motto: [+] I hope for you good future and i am willing that you will come high effort.")
print("")
import os
os.system("pip install socket")
os.system("pip install requests")
os.system("pip install colorama")
os.system("pip install time")
os.system("clear")
#_________________.
import requests
import time
import socket
import colorama
from colorama import Fore, init
import sys
#//////
init()
print (Fore.YELLOW+ """
_ ____ _ _ _____ _______ ____
(_)_ __ / ___|| | | |/ _ \ \ / / ____| _ \
| | '_ \ _____ \___ \| |_| | | | \ \ /\ / /| _| | |_) |
| | |_) | |_____| ___) | _ | |_| |\ V V / | |___| _ <
|_| .__/ |____/|_| |_|\___/ \_/\_/ |_____|_| \_\
|_|
""")
print("[+] Tool Name:IP-SHOWER")
print("[+] Author:Yousuf Shafi'i Muhammad. Junior Programmer")
print("[+] Version:1.0")
print("[+] Team:Junior Programmers")
print("[+] Github:https://github.com/Yousuf9963/phone-num-info")
print("[+] Follow me on Github: https://github.com/Yousuf9963")
print("[-] Website muhammadabdirahman.wixsite.com/yousuf9963blog.")
print("[!] legal disclaimer: Usage of this Program for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.")
print("[+] I hope for you good future and i am willing that you will come high effort.")
print("")
print (Fore.BLUE+"""
OPTIONS:
[1] GET Your LOCAL IP Address
[2] GET Your PUBLIC IP Address {Global IP}""")
print("")
print(Fore.GREEN+"")
get = input("""ENTER YOUR OPTIONS 1 or 2
>_ """)
if get == "1":
hostname = socket.gethostname()
ip_local = socket.gethostbyname(hostname)
print (Fore.RED+"PLEASE WAIT THANK YOU...")
time.sleep(3.0)
print (Fore.GREEN+"Your Local IP is:",Fore.RED + ip_local)
#.....$.$.$.$..$_..$.$
if get == "2":
print (Fore.RED+"PLEASE WAIT THANK YOU...")
time.sleep(3.0)
public = requests.get("https://api.ipify.org").text
print("")
print("")
time.sleep(3)
print (Fore.GREEN+"Your Public IP is:",Fore.RED + public)
else:
print (Fore.RED+'[×]'+Fore.YELLOW+' command invalid')
input ('Press Enter for Exit')
sys.exit()