Advertisement
Guest User

Untitled

a guest
Oct 24th, 2011
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.81 KB | None | 0 0
  1. import sys,re,urllib
  2.  
  3. # Created by Pathogen @ www.hakhub.tk
  4.  
  5. url = "http://www.sameip.org/ip/" + sys.argv[1]
  6. ip = re.compile('[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
  7.  
  8. page = urllib.urlopen(url)
  9. contents = page.read()
  10. content = re.split('\n',contents)
  11.  
  12.  
  13. for line in content:
  14.  if re.search('<h3>',line):
  15.   ipee = re.split("<h3>",line)
  16.   ipea = re.split("</h3>",ipee[1])
  17.   print ipea[0] + "\n\___________________________________________/"  
  18.  if re.search('<table cellspacing="1" width="100%">',line):
  19.   for line in content:
  20.    if re.search('<a href=',line):
  21.    
  22.     if re.search('Copyright &copy;',line):
  23.      quit()
  24.    
  25.     site = re.split('"',line)
  26.     if re.search('http://www.anrdoezrs.net/click-3947512-10713508',line) or site[2] == "/":  
  27.      print ""
  28.     else:
  29.      print site[1]
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement