tcp.py # -*- coding: cp936 -*- import socket from struct import * from time import ctime,sleep from os import system system('title tcp sniffer') system('color 05') # the public network interface HOST = socket.gethostbyname(socket.gethostname()) # cre…