Пример #1
0
	def analytics(self):
		debug_output( "(ip analytics for %s)" % self['value'])
		new = []

		# get reverse hostname
		hostname = toolbox.reverse_dns(self['value'])
		if hostname:
			new.append(('reverse', Hostname(hostname)))

		self['last_analysis'] = datetime.datetime.utcnow()
		self['next_analysis'] = self['last_analysis'] + datetime.timedelta(seconds=self['refresh_period'])

		return new
Пример #2
0
	def analytics(self):
		debug_output( "(ip analytics for %s)" % self['value'])
		new = []

		# get reverse hostname
		hostname = toolbox.reverse_dns(self['value'])
		if hostname:
			if toolbox.is_hostname(hostname):
				new.append(('reverse', Hostname(hostname)))

		self['last_analysis'] = datetime.datetime.utcnow()
		self['next_analysis'] = self['last_analysis'] + datetime.timedelta(seconds=self['refresh_period'])

		return new