3
0

Memcached.py 539 B

123456789101112131415161718
  1. import scapy.packet as packet
  2. import scapy.fields as field
  3. import scapy.layers.inet as inet
  4. memcached_port = 11211
  5. class Memcached_Request(packet.Packet):
  6. namez = "Memcached UDP request packet"
  7. fields_desc = [field.ShortField("RequestID", 0),
  8. field.ShortField("SequenceNumber", 0),
  9. field.ShortField("DatagramCount", 1),
  10. field.ShortField("Reserved", 0),
  11. field.StrField("Request", "\r\n")]
  12. packet.bind_layers(inet.UDP, Memcached_Request, dport=11211)