• 大小: 0.70M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 抓包  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpPcap;
using SharpPcap.AirPcap;

namespace AirPcapBasicCapture
{
    class Program
    {
        static void Main(string[] args)
        {
            var devices = AirPcapDeviceList.Instance;

            if (devices.Count == 0)
            {
                Console.WriteLine(“No devices found are you running as admin(if in Windows) or root(if in Linux/Mac)?“);
                return;
            }

            Console.WriteLine(“Available AirPcap devices:“);
            for (var i = 0; i < devices.Count; i++)
            {
                Console.WriteLine(“[{0}] - {1}“ i devices[i].Name);
            }

            Console.WriteLine();
            Console.Write

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件          84  2013-01-14 01:40  .gitignore
     文件        2708  2013-01-14 01:40  ARCHITECTURE
     目录           0  2013-01-14 01:40  Examples\
     目录           0  2013-01-14 01:40  Examples\AirPcapBasicCapture\
     文件        2879  2013-01-14 01:40  Examples\AirPcapBasicCapture\AirPcapBasicCapture.csproj
     文件        2081  2013-01-14 01:40  Examples\AirPcapBasicCapture\Program.cs
     目录           0  2013-01-14 01:40  Examples\AirPcapBasicCapture\Properties\
     文件        1468  2013-01-14 01:40  Examples\AirPcapBasicCapture\Properties\AssemblyInfo.cs
     目录           0  2013-01-14 01:40  Examples\AirPcapDeviceInformation\
     文件        3111  2013-01-14 01:40  Examples\AirPcapDeviceInformation\AirPcapDeviceInformation.csproj
     文件        4453  2013-01-14 01:40  Examples\AirPcapDeviceInformation\Program.cs
     目录           0  2013-01-14 01:40  Examples\AirPcapDeviceInformation\Properties\
     文件        1478  2013-01-14 01:40  Examples\AirPcapDeviceInformation\Properties\AssemblyInfo.cs
     目录           0  2013-01-14 01:40  Examples\AirPcapDeviceList\
     文件        2468  2013-01-14 01:40  Examples\AirPcapDeviceList\AirPcapDeviceList.csproj
     文件         745  2013-01-14 01:40  Examples\AirPcapDeviceList\Program.cs
     目录           0  2013-01-14 01:40  Examples\AirPcapDeviceList\Properties\
     文件        1464  2013-01-14 01:40  Examples\AirPcapDeviceList\Properties\AssemblyInfo.cs
     目录           0  2013-01-14 01:40  Examples\AirPcapLedControl\
     文件        2614  2013-01-14 01:40  Examples\AirPcapLedControl\AirPcapLedControl.csproj
     文件        2448  2013-01-14 01:40  Examples\AirPcapLedControl\Program.cs
     目录           0  2013-01-14 01:40  Examples\AirPcapLedControl\Properties\
     文件        1464  2013-01-14 01:40  Examples\AirPcapLedControl\Properties\AssemblyInfo.cs
     目录           0  2013-01-14 01:40  Examples\CreatingCaptureFile\
     文件        2058  2013-01-14 01:40  Examples\CreatingCaptureFile\CreatingCaptureFile.csproj
     文件        4856  2013-01-14 01:40  Examples\CreatingCaptureFile\Main.cs
     目录           0  2013-01-14 01:40  Examples\Example1.IfList\
     文件        3240  2013-01-14 01:40  Examples\Example1.IfList\Example01.IfList.csproj
     文件        1251  2013-01-14 01:40  Examples\Example1.IfList\Example1.IfList.cs
     目录           0  2013-01-14 01:40  Examples\Example10.SendQueue\
     文件        3788  2013-01-14 01:40  Examples\Example10.SendQueue\Example10.SendQueue.csproj
............此处省略189个文件信息

评论

共有 条评论