Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@attention: it inherets Packet from Scapy library
"""
name = "imap"
fields_desc = [IMAPField("response", "", "H")]
class IMAPReq(Packet):
"""
class for handling imap requests
@attention: it inherets Packet from Scapy library
"""
name = "imap"
fields_desc = [IMAPField("request", "", "H")]
bind_layers(TCP, IMAPReq, dport=143)
bind_layers(TCP, IMAPRes, sport=143)