-
Notifications
You must be signed in to change notification settings - Fork 4
/
PubIP.py
31 lines (29 loc) · 892 Bytes
/
PubIP.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
# The404Hacking
# Digital Security ReSearch Group
# Telegram: @The404Hacking
# PubIP Coded By Sir.4m1R
# The404Hacking.BlogSky.Com
import urllib
print ("-----------------------------------------")
print ("| PubIP | Get Public IP Address |")
print ("| The404Hacking |")
print ("| Digital Security ReSearch Group |")
print ("| Telegram: @The404Hacking |")
print ("| Coder: Sir.4m1R |")
print ("-----------------------------------------")
print ("")
print (" Connecting ...")
try:
data = urllib.urlopen("https://api.ipify.org/")
ip = data.read()
print (" Your Public IP is: "+str(ip))
print ("")
print ("To Exit, Press the [Enter] Button")
raw_input()
except:
print (" Check Your Connection !")
print ("")
print ("To Exit, Press the [Enter] Button")
raw_input()
exit()