Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys,re,urllib
- # Created by Pathogen @ www.hakhub.tk
- url = "http://www.sameip.org/ip/" + sys.argv[1]
- ip = re.compile('[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
- page = urllib.urlopen(url)
- contents = page.read()
- content = re.split('\n',contents)
- for line in content:
- if re.search('<h3>',line):
- ipee = re.split("<h3>",line)
- ipea = re.split("</h3>",ipee[1])
- print ipea[0] + "\n\___________________________________________/"
- if re.search('<table cellspacing="1" width="100%">',line):
- for line in content:
- if re.search('<a href=',line):
- if re.search('Copyright ©',line):
- quit()
- site = re.split('"',line)
- if re.search('http://www.anrdoezrs.net/click-3947512-10713508',line) or site[2] == "/":
- print ""
- else:
- print site[1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement