0

I'm trying to read all parameters within the packet. Using cap[0].layer._all_fields able to get fields of particular layer/protocol. Looking for something similar say cap[0]._all_fields

chandan
  • 93
  • 1
  • 11

1 Answers1

-1

Use dir(cap[0]) and you have it.

buddemat
  • 4,552
  • 14
  • 29
  • 49
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 19 '22 at 08:20
  • This will get all attributes on the object, not just the fields. – Rich L Aug 19 '22 at 16:32