Packet.Net

码农软件 · 软件分类 · 网络工具包 · 2019-03-02 08:56:43

软件介绍

Packet.Net 是一个.NET程序包,提供了剖析和构建网络数据包的功能。可以通过类的属性来调整各种数据包的参数。

示例代码:

using PacketDotNet;

// open the capture file
SharpPcap.LivePcapDevice dev = new SharpPcap.LivePcapDevice("SomeCapturedPackets.pcap");

// read a raw packet
rawPacket = dev.GetNextRawPacket();

// parse the packet
Packet p = Packet.ParsePacket((LinkLayers)rawPacket.LinkLayerType,
new PosixTimeval(rawPacket.Timeval.Seconds,
rawPacket.Timeval.MicroSeconds),
rawPacket.Data);

// print out the packet contents
Console.WriteLine(p);

输出信息:

[EthernetPacket: 00234D5BF88B -> 00183F7775D1 proto=IpV4 (0x800) 
l=14][IPv4Packet: 192.168.1.76 -> 72.14.204.83 HeaderLength=5
Protocol=TCP TimeToLive=64][TCPPacket: SourcePort: 59038 ->
DestinationPort: 443 ack[218134930 (0xd007992)]]

本文地址:https://codercto.com/soft/d/444.html

Usability for the Web

Usability for the Web

Tom Brinck、Darren Gergle、Scott D. Wood / Morgan Kaufmann / 2001-10-15 / USD 65.95

Every stage in the design of a new web site is an opportunity to meet or miss deadlines and budgetary goals. Every stage is an opportunity to boost or undercut the site's usability. Thi......一起来看看 《Usability for the Web》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具