文件名称:ArpSender
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 200kb
- 下载次数:
- 0次
- 提 供 者:
- 咹靜ゞ***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
ArpSender是C#写的ARP发包器,写的初衷是想试下什么样的ARP包才会引起ARP攻击,构造一些包可能会导致别人上不了网。至于包怎么填,发挥大家的想象吧,嘿嘿。
ArpSender用了SharpPcap这个开源API,有兴趣的到网上查下,用起来挺简单的。编程过程中最大的问题就是线程的问题。发包的代码中用了BackgroundWorker控件,因为参数只能传一个,并且线程是不允许直接调用主窗口控件,后来用了一个结构体struct ArpPac来传,感觉还是很麻烦啊!不过还好在BackgroundWorker的RunWorkerCompleted可以直接操作主窗口控件了,能把结果显示到主窗口上。
在编写获取IP的MAC地址部分,一开始还是用BackgroundWorker,在获取存在的IP地址MAC时可以正常工作,可是当IP不存在是,DOWORK方法一直没结束。因为里面一个Resolve方法一直没返回,也没超时设定,线程就一直卡在那不动了。也不知道该怎么结束这个线程。于是改用了Thread,传参数用了个object数组,嘿嘿,所有参数都封起来。到了那边再解封,很好用。后来才发现,线程是没有返回值的。。又不能直接操作窗体控件。。没办法,只好设个全局变量来保存结果了。获取MAC部分还用了个Timer控件,1秒钟如果还没得到返回的MAC,直接结束该线程-ArpSender Writing C# are the ARP contract, and written under the original intent was to want to test what kind of ARP packets that would arouse the ARP attacks, construction of some packets may lead to others not on Net. As for how to fill package, everyone s imagination to play it,
ArpSender spent SharpPcap this open source API, there is interest in online search, the very simple to use. Programming process is the biggest problem the question thread. Contract code used BackgroundWorker control, because the parameters can only be a mass, and threads are not allowed to directly call the main window controls, and later used a structure struct ArpPac to mass, I feel still very troublesome ah! Fortunately, however RunWorkerCompleted at BackgroundWorker can directly operate the main window controls, and the results can show up to the main window.
In the preparation of access to IP-MAC address of the beginning or use BackgroundWorker, exist in access to the IP address of MAC c
ArpSender用了SharpPcap这个开源API,有兴趣的到网上查下,用起来挺简单的。编程过程中最大的问题就是线程的问题。发包的代码中用了BackgroundWorker控件,因为参数只能传一个,并且线程是不允许直接调用主窗口控件,后来用了一个结构体struct ArpPac来传,感觉还是很麻烦啊!不过还好在BackgroundWorker的RunWorkerCompleted可以直接操作主窗口控件了,能把结果显示到主窗口上。
在编写获取IP的MAC地址部分,一开始还是用BackgroundWorker,在获取存在的IP地址MAC时可以正常工作,可是当IP不存在是,DOWORK方法一直没结束。因为里面一个Resolve方法一直没返回,也没超时设定,线程就一直卡在那不动了。也不知道该怎么结束这个线程。于是改用了Thread,传参数用了个object数组,嘿嘿,所有参数都封起来。到了那边再解封,很好用。后来才发现,线程是没有返回值的。。又不能直接操作窗体控件。。没办法,只好设个全局变量来保存结果了。获取MAC部分还用了个Timer控件,1秒钟如果还没得到返回的MAC,直接结束该线程-ArpSender Writing C# are the ARP contract, and written under the original intent was to want to test what kind of ARP packets that would arouse the ARP attacks, construction of some packets may lead to others not on Net. As for how to fill package, everyone s imagination to play it,
ArpSender spent SharpPcap this open source API, there is interest in online search, the very simple to use. Programming process is the biggest problem the question thread. Contract code used BackgroundWorker control, because the parameters can only be a mass, and threads are not allowed to directly call the main window controls, and later used a structure struct ArpPac to mass, I feel still very troublesome ah! Fortunately, however RunWorkerCompleted at BackgroundWorker can directly operate the main window controls, and the results can show up to the main window.
In the preparation of access to IP-MAC address of the beginning or use BackgroundWorker, exist in access to the IP address of MAC c
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ArpSender
.........\ArpSender.as
.........\ArpSender.csproj
.........\ArpSender.sln
.........\AssemblyInfo.cs
.........\bin
.........\...\Debug
.........\...\.....\ArpSender.as
.........\...\.....\ArpSender.exe
.........\...\.....\ArpSender.pdb
.........\...\.....\Tamir.IPLib.SharpPcap.dll
.........\...\Release
.........\...\.......\ArpSender.as
.........\...\.......\ArpSender.exe
.........\...\.......\Tamir.IPLib.SharpPcap.dll
.........\MainForm.cs
.........\MainForm.Designer.cs
.........\MainForm.resx
.........\obj
.........\...\ArpSender.csproj.FileList.txt
.........\...\Debug
.........\...\.....\ArpSender.csproj.GenerateResource.Cache
.........\...\.....\ArpSender.exe
.........\...\.....\ArpSender.MainForm.resources
.........\...\.....\ArpSender.pdb
.........\...\.....\TempPE
.........\...\Release
.........\...\.......\ArpSender.csproj.GenerateResource.Cache
.........\...\.......\ArpSender.exe
.........\...\.......\ArpSender.MainForm.resources
.........\...\.......\ResolveAssemblyReference.cache
.........\...\.......\TempPE
.........\Tamir.IPLib.SharpPcap.dll
.........\说明.txt
.........\ArpSender.as
.........\ArpSender.csproj
.........\ArpSender.sln
.........\AssemblyInfo.cs
.........\bin
.........\...\Debug
.........\...\.....\ArpSender.as
.........\...\.....\ArpSender.exe
.........\...\.....\ArpSender.pdb
.........\...\.....\Tamir.IPLib.SharpPcap.dll
.........\...\Release
.........\...\.......\ArpSender.as
.........\...\.......\ArpSender.exe
.........\...\.......\Tamir.IPLib.SharpPcap.dll
.........\MainForm.cs
.........\MainForm.Designer.cs
.........\MainForm.resx
.........\obj
.........\...\ArpSender.csproj.FileList.txt
.........\...\Debug
.........\...\.....\ArpSender.csproj.GenerateResource.Cache
.........\...\.....\ArpSender.exe
.........\...\.....\ArpSender.MainForm.resources
.........\...\.....\ArpSender.pdb
.........\...\.....\TempPE
.........\...\Release
.........\...\.......\ArpSender.csproj.GenerateResource.Cache
.........\...\.......\ArpSender.exe
.........\...\.......\ArpSender.MainForm.resources
.........\...\.......\ResolveAssemblyReference.cache
.........\...\.......\TempPE
.........\Tamir.IPLib.SharpPcap.dll
.........\说明.txt