QuestionQ11
Packet Analysis with PythonA log file is held in variable a. Each log entry has the following big-endian format, in this order:
- Field 1: 2-byte integer -
- Field 2: 2-byte integer -
- Field 3: 4-byte integer -
Which of the following unpacks a line from the log file into the correct fields?
- A struct.unpack('>HH4s',a)
- B struct.unpack('<HHssss',a)
- C struct.unpack('>HHHH',a)
- D struct.unpack('!BxBx4s',a)
Community Discussion