python IPscan查找IP主机

2021-01-14 11:12:05 浏览数 (1)

python IPscan查找ip主机(仅供学习)

代码语言:javascript复制
from socket import gethostbyname

def Miscript():
	print'a=[Welcome to Ip Scanner by: Hacking Live]='
	target = raw_input('./Enter the Host: ')
	targetIP = gethostbyname(target)
	print 'a-Target IP ===>', targetIP
	print ' ------------------------------------ '
	Miscript()
Miscript()

0 人点赞