Skip to content

Commit f925c9e

Browse files
committed
Add files via upload
1 parent 754fb8e commit f925c9e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

ip.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import requests
2+
import json
3+
4+
a="181.54.153."
5+
c = open("eli.txt","w")
6+
def ip_search():
7+
for i in range(0,255):
8+
i=i+1
9+
b=a+str(i)
10+
r=requests.get("http://ipinfo.io/"+b+"/json")
11+
h=r.json()
12+
p=str(r.status_code)
13+
if p=="200":
14+
c.write(b+"\n");
15+
c.write(str(h)+"\n"+"\n");
16+
print "En proceso "+b
17+
18+
19+
ip_search()
20+
21+
print "listo"

0 commit comments

Comments
 (0)