上传者: 38725950
|
上传时间: 2021-12-27 11:30:19
|
文件大小: 31KB
|
文件类型: -
复制代码 代码如下:#!/usr/bin/python# -*- coding: utf-8 -*-
from scapy.all import *from time import ctime,sleepimport threadingTIMEOUT = 4conf.verb=0
def pro(cc,handle): dst = “192.168.1.” + str(cc) packet = IP(dst=dst, ttl=20)/ICMP() reply = sr1(packet, timeout=TIMEOUT) if not (reply is None): handle.write