⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 capturedisplay.cs

📁 一个抓包工具
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using MyClasses;

namespace Pacanal
{

	public class CaptureDisplay : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox GrpBoxCapture;
		private System.Windows.Forms.Label LblTotal;
		private System.Windows.Forms.Label LblTotalCount;
		private System.Windows.Forms.Label LblTotalPct;
		private System.Windows.Forms.Label LblSCPT;
		private System.Windows.Forms.Label LblSCPTCount;
		private System.Windows.Forms.Label LblTCP;
		private System.Windows.Forms.Label LblSCPTPct;
		private System.Windows.Forms.Label LblTCPCount;
		private System.Windows.Forms.Label LblTCPPct;
		private System.Windows.Forms.Label LblUDP;
		private System.Windows.Forms.Label LblUDPPct;
		private System.Windows.Forms.Label LblICMP;
		private System.Windows.Forms.Label LblUDPCount;
		private System.Windows.Forms.Label LblICMPPct;
		private System.Windows.Forms.Label LblICMPCount;
		private System.Windows.Forms.Label LblOSPF;
		private System.Windows.Forms.Label LblARP;
		private System.Windows.Forms.Label LblOSPFCount;
		private System.Windows.Forms.Label LblARPCount;
		private System.Windows.Forms.Label LblOSPFPct;
		private System.Windows.Forms.Label LblARPPct;
		private System.Windows.Forms.Label LblGRE;
		private System.Windows.Forms.Label LblGRECount;
		private System.Windows.Forms.Label LblNetBIOS;
		private System.Windows.Forms.Label LblGREPct;
		private System.Windows.Forms.Label LblNetBIOSCount;
		private System.Windows.Forms.Label LblNetBIOSPct;
		private System.Windows.Forms.Label LblIPX;
		private System.Windows.Forms.Label LblIPXPct;
		private System.Windows.Forms.Label LblIPXCount;
		private System.Windows.Forms.Label LblVINESCount;
		private System.Windows.Forms.Label LblVINES;
		private System.Windows.Forms.Label LblVINESPct;
		private System.Windows.Forms.Label LblOther;
		private System.Windows.Forms.Label LblOtherPct;
		private System.Windows.Forms.Label LblOtherCount;
		private System.Windows.Forms.GroupBox GrpBoxRunningTime;
		private System.Windows.Forms.Label LblRunningTime;
		private System.Windows.Forms.Button BtnStop;
		public Packet32 P32;
		private System.Windows.Forms.Timer CaptureTimer;
		private System.ComponentModel.IContainer components;
		private System.Windows.Forms.GroupBox GrpBoxReadBytes;
		private System.Windows.Forms.Label LblBytesRead;
		private bool IsTimerRunning = false;
		public ListView LVw;
		public TreeNodeCollection Tnc;
		public RichTextBox Rtx;


		public CaptureDisplay()
		{
			InitializeComponent();
		}


		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private  void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.GrpBoxCapture = new System.Windows.Forms.GroupBox();
			this.LblOtherCount = new System.Windows.Forms.Label();
			this.LblOtherPct = new System.Windows.Forms.Label();
			this.LblOther = new System.Windows.Forms.Label();
			this.LblVINESPct = new System.Windows.Forms.Label();
			this.LblVINES = new System.Windows.Forms.Label();
			this.LblVINESCount = new System.Windows.Forms.Label();
			this.LblIPXCount = new System.Windows.Forms.Label();
			this.LblIPXPct = new System.Windows.Forms.Label();
			this.LblIPX = new System.Windows.Forms.Label();
			this.LblNetBIOSPct = new System.Windows.Forms.Label();
			this.LblNetBIOSCount = new System.Windows.Forms.Label();
			this.LblGREPct = new System.Windows.Forms.Label();
			this.LblNetBIOS = new System.Windows.Forms.Label();
			this.LblGRECount = new System.Windows.Forms.Label();
			this.LblGRE = new System.Windows.Forms.Label();
			this.LblARPPct = new System.Windows.Forms.Label();
			this.LblOSPFPct = new System.Windows.Forms.Label();
			this.LblARPCount = new System.Windows.Forms.Label();
			this.LblOSPFCount = new System.Windows.Forms.Label();
			this.LblARP = new System.Windows.Forms.Label();
			this.LblOSPF = new System.Windows.Forms.Label();
			this.LblICMPCount = new System.Windows.Forms.Label();
			this.LblICMPPct = new System.Windows.Forms.Label();
			this.LblUDPCount = new System.Windows.Forms.Label();
			this.LblICMP = new System.Windows.Forms.Label();
			this.LblUDPPct = new System.Windows.Forms.Label();
			this.LblUDP = new System.Windows.Forms.Label();
			this.LblTCPPct = new System.Windows.Forms.Label();
			this.LblTCPCount = new System.Windows.Forms.Label();
			this.LblSCPTPct = new System.Windows.Forms.Label();
			this.LblTCP = new System.Windows.Forms.Label();
			this.LblSCPTCount = new System.Windows.Forms.Label();
			this.LblSCPT = new System.Windows.Forms.Label();
			this.LblTotalPct = new System.Windows.Forms.Label();
			this.LblTotalCount = new System.Windows.Forms.Label();
			this.LblTotal = new System.Windows.Forms.Label();
			this.GrpBoxRunningTime = new System.Windows.Forms.GroupBox();
			this.LblRunningTime = new System.Windows.Forms.Label();
			this.BtnStop = new System.Windows.Forms.Button();
			this.CaptureTimer = new System.Windows.Forms.Timer(this.components);
			this.GrpBoxReadBytes = new System.Windows.Forms.GroupBox();
			this.LblBytesRead = new System.Windows.Forms.Label();
			this.GrpBoxCapture.SuspendLayout();
			this.GrpBoxRunningTime.SuspendLayout();
			this.GrpBoxReadBytes.SuspendLayout();
			this.SuspendLayout();
			// 
			// GrpBoxCapture
			// 
			this.GrpBoxCapture.Controls.AddRange(new System.Windows.Forms.Control[] {
																						this.LblOtherCount,
																						this.LblOtherPct,
																						this.LblOther,
																						this.LblVINESPct,
																						this.LblVINES,
																						this.LblVINESCount,
																						this.LblIPXCount,
																						this.LblIPXPct,
																						this.LblIPX,
																						this.LblNetBIOSPct,
																						this.LblNetBIOSCount,
																						this.LblGREPct,
																						this.LblNetBIOS,
																						this.LblGRECount,
																						this.LblGRE,
																						this.LblARPPct,
																						this.LblOSPFPct,
																						this.LblARPCount,
																						this.LblOSPFCount,
																						this.LblARP,
																						this.LblOSPF,
																						this.LblICMPCount,
																						this.LblICMPPct,
																						this.LblUDPCount,
																						this.LblICMP,
																						this.LblUDPPct,
																						this.LblUDP,
																						this.LblTCPPct,
																						this.LblTCPCount,
																						this.LblSCPTPct,
																						this.LblTCP,
																						this.LblSCPTCount,
																						this.LblSCPT,
																						this.LblTotalPct,
																						this.LblTotalCount,
																						this.LblTotal});
			this.GrpBoxCapture.Location = new System.Drawing.Point(8, 8);
			this.GrpBoxCapture.Name = "GrpBoxCapture";
			this.GrpBoxCapture.Size = new System.Drawing.Size(224, 232);
			this.GrpBoxCapture.TabIndex = 0;
			this.GrpBoxCapture.TabStop = false;
			this.GrpBoxCapture.Text = "   Captured Frames   ";
			// 
			// LblOtherCount
			// 
			this.LblOtherCount.AutoSize = true;
			this.LblOtherCount.Location = new System.Drawing.Point(88, 200);
			this.LblOtherCount.Name = "LblOtherCount";
			this.LblOtherCount.Size = new System.Drawing.Size(11, 13);
			this.LblOtherCount.TabIndex = 35;
			this.LblOtherCount.Text = "0";
			// 
			// LblOtherPct
			// 
			this.LblOtherPct.AutoSize = true;
			this.LblOtherPct.Location = new System.Drawing.Point(136, 200);
			this.LblOtherPct.Name = "LblOtherPct";
			this.LblOtherPct.Size = new System.Drawing.Size(55, 13);
			this.LblOtherPct.TabIndex = 34;
			this.LblOtherPct.Text = "( 0.00 % )";
			// 
			// LblOther
			// 
			this.LblOther.AutoSize = true;
			this.LblOther.Location = new System.Drawing.Point(16, 200);
			this.LblOther.Name = "LblOther";
			this.LblOther.Size = new System.Drawing.Size(34, 13);
			this.LblOther.TabIndex = 33;
			this.LblOther.Text = "Other";
			// 
			// LblVINESPct
			// 
			this.LblVINESPct.AutoSize = true;
			this.LblVINESPct.Location = new System.Drawing.Point(136, 184);
			this.LblVINESPct.Name = "LblVINESPct";
			this.LblVINESPct.Size = new System.Drawing.Size(55, 13);
			this.LblVINESPct.TabIndex = 32;
			this.LblVINESPct.Text = "( 0.00 % )";
			// 
			// LblVINES
			// 
			this.LblVINES.AutoSize = true;
			this.LblVINES.Location = new System.Drawing.Point(16, 184);
			this.LblVINES.Name = "LblVINES";
			this.LblVINES.Size = new System.Drawing.Size(39, 13);
			this.LblVINES.TabIndex = 31;
			this.LblVINES.Text = "VINES";
			// 
			// LblVINESCount
			// 
			this.LblVINESCount.AutoSize = true;
			this.LblVINESCount.Location = new System.Drawing.Point(88, 184);
			this.LblVINESCount.Name = "LblVINESCount";
			this.LblVINESCount.Size = new System.Drawing.Size(11, 13);
			this.LblVINESCount.TabIndex = 30;
			this.LblVINESCount.Text = "0";
			// 
			// LblIPXCount
			// 
			this.LblIPXCount.AutoSize = true;
			this.LblIPXCount.Location = new System.Drawing.Point(88, 168);
			this.LblIPXCount.Name = "LblIPXCount";
			this.LblIPXCount.Size = new System.Drawing.Size(11, 13);
			this.LblIPXCount.TabIndex = 29;
			this.LblIPXCount.Text = "0";
			// 
			// LblIPXPct
			// 
			this.LblIPXPct.AutoSize = true;
			this.LblIPXPct.Location = new System.Drawing.Point(136, 168);
			this.LblIPXPct.Name = "LblIPXPct";
			this.LblIPXPct.Size = new System.Drawing.Size(55, 13);
			this.LblIPXPct.TabIndex = 28;
			this.LblIPXPct.Text = "( 0.00 % )";
			// 
			// LblIPX
			// 
			this.LblIPX.AutoSize = true;
			this.LblIPX.Location = new System.Drawing.Point(16, 168);
			this.LblIPX.Name = "LblIPX";
			this.LblIPX.Size = new System.Drawing.Size(23, 13);
			this.LblIPX.TabIndex = 27;
			this.LblIPX.Text = "IPX";
			// 
			// LblNetBIOSPct
			// 
			this.LblNetBIOSPct.AutoSize = true;
			this.LblNetBIOSPct.Location = new System.Drawing.Point(136, 152);
			this.LblNetBIOSPct.Name = "LblNetBIOSPct";
			this.LblNetBIOSPct.Size = new System.Drawing.Size(55, 13);
			this.LblNetBIOSPct.TabIndex = 26;
			this.LblNetBIOSPct.Text = "( 0.00 % )";
			// 
			// LblNetBIOSCount
			// 
			this.LblNetBIOSCount.AutoSize = true;
			this.LblNetBIOSCount.Location = new System.Drawing.Point(88, 152);
			this.LblNetBIOSCount.Name = "LblNetBIOSCount";
			this.LblNetBIOSCount.Size = new System.Drawing.Size(11, 13);
			this.LblNetBIOSCount.TabIndex = 25;
			this.LblNetBIOSCount.Text = "0";
			// 
			// LblGREPct
			// 
			this.LblGREPct.AutoSize = true;
			this.LblGREPct.Location = new System.Drawing.Point(136, 136);
			this.LblGREPct.Name = "LblGREPct";
			this.LblGREPct.Size = new System.Drawing.Size(55, 13);
			this.LblGREPct.TabIndex = 24;
			this.LblGREPct.Text = "( 0.00 % )";
			// 
			// LblNetBIOS
			// 
			this.LblNetBIOS.AutoSize = true;
			this.LblNetBIOS.Location = new System.Drawing.Point(16, 152);
			this.LblNetBIOS.Name = "LblNetBIOS";
			this.LblNetBIOS.Size = new System.Drawing.Size(50, 13);
			this.LblNetBIOS.TabIndex = 23;
			this.LblNetBIOS.Text = "NetBIOS";
			// 
			// LblGRECount
			// 
			this.LblGRECount.AutoSize = true;
			this.LblGRECount.Location = new System.Drawing.Point(88, 136);
			this.LblGRECount.Name = "LblGRECount";
			this.LblGRECount.Size = new System.Drawing.Size(11, 13);
			this.LblGRECount.TabIndex = 22;
			this.LblGRECount.Text = "0";
			// 
			// LblGRE
			// 
			this.LblGRE.AutoSize = true;
			this.LblGRE.Location = new System.Drawing.Point(16, 136);
			this.LblGRE.Name = "LblGRE";
			this.LblGRE.Size = new System.Drawing.Size(29, 13);
			this.LblGRE.TabIndex = 21;
			this.LblGRE.Text = "GRE";
			// 
			// LblARPPct
			// 
			this.LblARPPct.AutoSize = true;
			this.LblARPPct.Location = new System.Drawing.Point(136, 104);
			this.LblARPPct.Name = "LblARPPct";
			this.LblARPPct.Size = new System.Drawing.Size(55, 13);
			this.LblARPPct.TabIndex = 20;
			this.LblARPPct.Text = "( 0.00 % )";
			// 
			// LblOSPFPct
			// 
			this.LblOSPFPct.AutoSize = true;
			this.LblOSPFPct.Location = new System.Drawing.Point(136, 120);
			this.LblOSPFPct.Name = "LblOSPFPct";
			this.LblOSPFPct.Size = new System.Drawing.Size(55, 13);
			this.LblOSPFPct.TabIndex = 19;
			this.LblOSPFPct.Text = "( 0.00 % )";
			// 
			// LblARPCount
			// 
			this.LblARPCount.AutoSize = true;
			this.LblARPCount.Location = new System.Drawing.Point(88, 104);
			this.LblARPCount.Name = "LblARPCount";
			this.LblARPCount.Size = new System.Drawing.Size(11, 13);
			this.LblARPCount.TabIndex = 18;
			this.LblARPCount.Text = "0";
			// 
			// LblOSPFCount
			// 
			this.LblOSPFCount.AutoSize = true;
			this.LblOSPFCount.Location = new System.Drawing.Point(88, 120);
			this.LblOSPFCount.Name = "LblOSPFCount";
			this.LblOSPFCount.Size = new System.Drawing.Size(11, 13);
			this.LblOSPFCount.TabIndex = 17;
			this.LblOSPFCount.Text = "0";
			// 
			// LblARP
			// 
			this.LblARP.AutoSize = true;
			this.LblARP.Location = new System.Drawing.Point(16, 104);
			this.LblARP.Name = "LblARP";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -