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()