Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

261 B
Raw Blame
#!/usr/bin/env python

import socket

try :
	result = socket.gethostbyaddr("8.8.8.8")
	print("The host name is:",result[0])
	print("Ip addresses:")
	for item in result[2]:
		print(" "+item)
except socket.error as e:
	print("Error for resolving ip address:",e)