• 大小: 37KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-26
  • 语言: C#
  • 标签: C#  抓包  源代码  

资源简介

详细的C#抓包程序,并且有源码哦 !!!!!!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace IPv6Packet
{
    class Program
    {
        static void Main(string[] args)
        {
            IPHostEntry local;

            local = Dns.GetHostEntry(Dns.GetHostName());

            RawSocket rawSocket = new RawSocket();
            foreach (IPAddress addr in local.AddressList)
            {
                if (!rawSocket.CreateAndBindSocket(addr.ToString()))
                {
                    continue;
                }
                else
                {
                    rawSocket.Run();
                    break;
                }
            }
            Console.ReadLine();
            rawSocket.Shutdown();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      24576  2008-11-10 18:35  IPv6Packet\IPv6Packet\bin\Debug\IPv6Packet.exe

     文件      22016  2008-11-10 18:35  IPv6Packet\IPv6Packet\bin\Debug\IPv6Packet.pdb

     文件       5632  2005-12-08 14:51  IPv6Packet\IPv6Packet\bin\Debug\IPv6Packet.vshost.exe

     目录          0  2009-01-11 00:17  IPv6Packet\IPv6Packet\bin\Debug

     目录          0  2009-01-11 00:17  IPv6Packet\IPv6Packet\bin

     文件       2043  2008-11-09 20:26  IPv6Packet\IPv6Packet\IPv6Packet.csproj

     文件      24576  2008-11-10 18:35  IPv6Packet\IPv6Packet\obj\Debug\IPv6Packet.exe

     文件      22016  2008-11-10 18:35  IPv6Packet\IPv6Packet\obj\Debug\IPv6Packet.pdb

     目录          0  2008-11-09 20:24  IPv6Packet\IPv6Packet\obj\Debug\TempPE

     目录          0  2009-01-11 00:17  IPv6Packet\IPv6Packet\obj\Debug

     文件        146  2008-11-10 18:35  IPv6Packet\IPv6Packet\obj\IPv6Packet.csproj.FileList.txt

     目录          0  2009-01-11 00:17  IPv6Packet\IPv6Packet\obj

     文件        786  2008-11-09 20:26  IPv6Packet\IPv6Packet\Program.cs

     文件       1191  2008-11-09 20:24  IPv6Packet\IPv6Packet\Properties\AssemblyInfo.cs

     目录          0  2009-01-11 00:17  IPv6Packet\IPv6Packet\Properties

     文件      14605  2008-11-10 18:35  IPv6Packet\IPv6Packet\RawSocket.cs

     目录          0  2009-01-11 00:17  IPv6Packet\IPv6Packet

     文件        919  2008-11-09 20:24  IPv6Packet\IPv6Packet.sln

    ..A..H.     11264  2008-11-10 18:36  IPv6Packet\IPv6Packet.suo

     文件      60928  2009-10-19 16:06  IPv6Packet\说明文档.doc

     目录          0  2009-10-19 16:06  IPv6Packet

----------- ---------  ---------- -----  ----

               190698                    21


评论

共有 条评论