python构造icmp echo请求和实现网络探测器功能代码分享
python发送icmp echo requesy请求复制代码 代码如下:import socketimport struct def checksum(source_string): sum = 0 countTo = (len(source_string)/2)*2 count = 0 while count<countTo: thisVal = ord(source_string[count + 1])*256 + ord(source_string[count]) sum = sum + thisVal sum =
下载地址
用户评论