pmap.py 235 B

12345678910111213141516
  1. """Portmap / rpcbind."""
  2. from pypacker import pypacker
  3. PMAP_PROG = 100000
  4. PMAP_PROCDUMP = 4
  5. PMAP_VERS = 2
  6. class Pmap(pypacker.Packet):
  7. __hdr__ = (
  8. ("prog", "I", 0),
  9. ("vers", "I", 0),
  10. ("prot", "I", 0),
  11. ("port", "I", 0),
  12. )