smb.py 307 B

123456789101112131415161718
  1. """Server Message Block."""
  2. from pypacker import pypacker
  3. class SMB(pypacker.Packet):
  4. __hdr__ = [
  5. ("proto", "4s", b""),
  6. ("cmd", "B", 0),
  7. ("err", "I", 0),
  8. ("flags1", "B", 0),
  9. ("flags2", "B", 0),
  10. ("pad", "6s", ""),
  11. ("tid", "H", 0),
  12. ("pid", "H", 0),
  13. ("uid", "H", 0),
  14. ("mid", "H", 0)
  15. ]