it's code:
Expand|Select|Wrap|Line Numbers
- #coding=utf-8
- 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():
- #do not mate the if code
- print ("[*] Server: %s" % packet[IP].dst)
- print ("[*] %s" % packet[TCP].payload)
- sniff(filter="tcp port 110 or tcp port 25 or tcp port 143", prn=packet_callback, store=0)
Is it use SSL or other skill to encrypt the packet?
should any kind people help me?
Thanks in advance!