Print "packet_payload_info :",block.packet_payload_info,"\n" If block.magic_number = ENHANCEDPACKET_ID: Print "magic_number",hex(block.magic_number) Return ' '.join(format(ord(x), out_format).zfill(2) for x in hex_str) Return ' '.join(format(ord(x), out_format).zfill(8) for x in hex_str) i.e., where does its first byte fit in the frameĭef hex_str_to_num(hex_str,out_format='X'):.SectionHeader(version_major=1, version_minor=0, section_length=-1, options=Options()) This is the output I get (my code is at the bottom): magic_number 0xa0d0d0a However, I cannot figure out how to reconcile the output I receive from FileScanner's packet_payload_info with the 802.11 Data frame format: I have PcapNG files created by Wireshark, which I try to parse with python-pcapng.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |