监测主机存活的端口
#!/usr/bin/env python
# coding-utf
import argparse
import socket
import sys
#author: wolf_ribble
def scan_ports(host,start_port,end_port):
"""Scan remote hosts"""
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
except socket.error,error_msg:
print 'Socket creat
1