Advertisement
KiLL3r-Dz

Subdomain Grabber

Nov 14th, 2013
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. #!/usr/bin/python
  2. print '''
  3. #////////////////////////////////////////#
  4. #       Subdomain Grabber V0.1           #
  5. #       By      :    UzunDz              #
  6. #       From    :    x00x Team           #
  7. #////////////////////////////////////////#\n'''
  8.  
  9. import re , urllib2 , socket
  10. from urllib2 import Request, urlopen
  11. xdom = raw_input('Domain : ')
  12. data = urllib2.urlopen('http://www.alexa.com/siteinfo/'+xdom).read()
  13. xfind = re.findall("<td class='' ><span class='word-wrap'>(.*?)</span></td>",data)
  14. if len(xfind) > 1 :
  15.     for sub in xfind :
  16.         print 'subdomain : ' + sub + ' -> ' + socket.gethostbyname(sub)
  17. else :
  18.     print 'No Subdomain Found'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement