Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added option to find any TOR server

  • Loading branch information...
commit e586bc03377c9827e501469ac750ecb4c377c5a6 1 parent c5c3f71
@tkisason authored
Showing with 15 additions and 1 deletion.
  1. +15 −1 check_tor.py
View
16 check_tor.py
@@ -6,4 +6,18 @@ def is_tor_exit(ip):
list = "http://torstatus.blutmagie.de/ip_list_exit.php/Tor_ip_list_EXIT.csv"
list = urllib2.urlopen(list).read()
list = list.split("\n")
- print list
+ if ip in list:
+ return 1
+ else:
+ return 0
+
+def is_tor_server(ip):
+ list = "http://torstatus.blutmagie.de/ip_list_all.php/Tor_ip_list_ALL.csv"
+ list = urllib2.urlopen(list).read()
+ list = list.split("\n")
+ if ip in list:
+ return 1
+ else:
+ return 0
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.