def checkDnsWildcard(self, target):
randpool = 'bcdfghjklmnpqrstvwxyz3456789'
randhost = ''.join([random.choice(randpool) for x in range(10)])
# An exception will be raised if the resolution fails
try:
addrs = socket.gethostbyname_ex(randhost + "." + target)
self.debug(target + " has wildcard DNS.")
return True
except BaseException as e:
self.debug(target + " does not have wildcard DNS.")
return False
# Scrape Google for content, starting at startUrl and iterating through
# results based on options supplied. Will return a dictionary of all pages
# fetched and their contents {page => content}.
# Options accepted:
# limit: number of search result pages before returning, default is 10
# nopause: don't randomly pause between fetches
# useragent: User-Agent string to use
# timeout: Fetch timeout
评论列表
文章目录