1 / 8

Data

Toolbox. Struct. MyStruct. Integer. Length:UBInt16. Bytes. Value:Bytes(_). Struct. Data. 05. 40 41 42 43 44. 11 22 33 44 55 66 77 88 99 aa bb cc dd. length. value. MyStruct. File. View. Tools. Capture. WireSnake. _. x. ethernet. ipv4. class MacAddressAdapter(Adapter):

Download Presentation

Data

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Toolbox Struct MyStruct Integer Length:UBInt16 Bytes Value:Bytes(_) Struct Data 05 40 41 42 43 44 11 22 33 44 55 66 77 88 99 aa bb cc dd length value MyStruct

  2. File View Tools Capture WireSnake _ x ethernet ipv4 class MacAddressAdapter(Adapter): … … ethernet_header = Struct( … … … … ) • Debugger: • Traceback • Context analysis • Playback Struct A sequence of … Parameters: name – … subcons – … Buffer: 0172996a336c3b62811de6a70806 Result: Conatiner: dst=“01-72-99-6a-33-6c” src = …

  3. Ethernet header Field(6) Field(6) UBInt16 01001001001001… Ethernet header Dest = \x01\x02\x03\x04\x05\x06 Source = \x07\x08\x09\x0a\x0b\x0c Type = 2054

  4. MacAdapter def _decode… def _encode… Ethernet header MacAdapter MacAdapter UBInt16 Field(6) Field(6)

  5. MacAdapter def _decode… def _encode… MacAddress MacAdapter Field(6) MacAddress MacAddress UBInt16 Ethernet header

  6. MacAdapter def _decode… def _encode… MacAddress MacAdapter Field(6) Enum( IP = 0x0806, ARP = 0x0804) TypeEnum MacAddress MacAddress TypeEnum Ethernet header UBInt16 01001001001001… Ethernet header Dest = 01.02.03.04.05.06 Source = 07.08.09.0a.0b.0c Type = IP

  7. PascalString UBInt8 Array( ) Field(1)

  8. LengthValueAdapter def _decode… def _encode… LengthValue LengthValueAdapter <number> Array( ) Field(1) PascalString StringAdapter LengthValue PascalString8 PascalString PascalStringFoo PascalString UBInt8 Field(1)

More Related