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

Sass and Compass in Action

Sass and Compass in Action

Wynn Netherland、Nathan Weizenbaum、Chris Eppstein、Brandon Mathis / Manning Publications / 2013-8-2 / USD 44.99

Written by Sass and Compass creators * Complete Sass language reference * Covers prominent Compass community plug-ins * Innovative approach to creating stylesheets Cascading Style Sheets paint the we......一起来看看 《Sass and Compass in Action》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码