03 2017 档案

zz binascii:二进制和ASCII互转 以及其他进制转换
摘要:python模块介绍- binascii:二进制和ASCII互转 以及其他进制转换 2012-08-01 0 个评论 收藏 我要投稿 广告位:2cto_左一 python模块介绍- binascii:二进制和ASCII互转以及其他进制转换 2012-08-01磁针石 #承接软件自动化实施与培训等gt 阅读全文

posted @ 2017-03-22 14:01 js.yeyong 阅读(1151) 评论(0) 推荐(0)

eth/tcp/ip 头的结构记录
摘要:tcp头 其中 tcp_header_len是这样的: 在t_f中给出的是header长度占32bit的数目,也就是: 8 ==> 8x32 = 8*4*8 = 32 bytes 其中 这一位可以取值范围是 4 bit 也就是 最大 1111 = 15 * 4* 8 = 60 bytes 一般这个值 阅读全文

posted @ 2017-03-22 12:57 js.yeyong 阅读(396) 评论(1) 推荐(0)

通过 format 来大量输出字符变量,并排版
摘要:1 def get_protocol_info_from_pcap(pcapfile): 2 pcap = PcapFile(pcapfile) 3 start = time.time() 4 pkts = {} 5 for p in pcap.tcp_udp_packets(): 6 l3 = p.L3_protocol 7 ... 阅读全文

posted @ 2017-03-22 09:52 js.yeyong 阅读(257) 评论(0) 推荐(0)

导航