摘要: What is endianness? Little and big endian are two ways of storing multibyte data types ( int, float, etc). In little endian machines, last byte of bin 阅读全文
posted @ 2020-05-09 16:46 ToRapture 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Docs and Articles Manpage of TCPDUMP Manpage of PCAP-FILTER Examples of using tcpdump on the command line tcpdump命令详解 Capture of tcp 阅读全文
posted @ 2020-05-09 15:00 ToRapture 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Headers Lables Each label can be up to 63 characters long, and an entire FQDN(fully qualified domain name) is limited to at most 255 (1-byte) characte 阅读全文
posted @ 2020-05-03 13:37 ToRapture 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Do some experiment about UDP by Python3 and netstat. Code # coding: utf-8 import socket from IPython import embed def main(): sock = socket.socket(soc 阅读全文
posted @ 2020-04-28 12:49 ToRapture 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Find max packet size # coding: utf-8 import socket def find_max_udp_packet_size(): sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) max_sz = 0 阅读全文
posted @ 2020-04-27 18:30 ToRapture 阅读(134) 评论(0) 推荐(0) 编辑
摘要: UDP headers Headers for computing checksum The checksum computation is similar to the Internet checksum computation. #include <bits/stdc++.h> #define 阅读全文
posted @ 2020-04-27 14:03 ToRapture 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Command https://linux.die.net/man/8/traceroute This program attempts to trace the route an IP packet would follow to some internet host by launching p 阅读全文
posted @ 2020-04-26 20:03 ToRapture 阅读(271) 评论(0) 推荐(0) 编辑
摘要: From: TCP/IP Illustrated, Volume 1: The Protocols. IHL The Internet Header Length (IHL) field is the number of 32-bit words in the IPv4 header, includ 阅读全文
posted @ 2020-04-24 17:13 ToRapture 阅读(275) 评论(0) 推荐(0) 编辑
摘要: ifconfig https://linux.die.net/man/8/ifconfig Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up 阅读全文
posted @ 2020-04-24 16:47 ToRapture 阅读(171) 评论(0) 推荐(0) 编辑
摘要: To do an experiment, first capture an IP packet, as we can see the checksum is 0xCAD7. Then we set the checksum field to 0, and calculate the checksum 阅读全文
posted @ 2020-04-23 14:22 ToRapture 阅读(243) 评论(0) 推荐(0) 编辑