ArpSender

所属分类:网络编程
开发工具:C#
文件大小:200KB
下载次数:36
上传日期:2009-03-09 16:29:34
上 传 者swordfish
说明:  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\AssemblyInfo.cs (1037, 2008-12-24)
ArpSender\ArpSender.csproj (2160, 2008-12-27)
ArpSender\ArpSender.sln (812, 2008-12-24)
ArpSender\obj\Debug\ArpSender.pdb (30208, 2008-12-27)
ArpSender\obj\Debug\ArpSender.MainForm.resources (180, 2008-12-27)
ArpSender\obj\Debug\ArpSender.csproj.GenerateResource.Cache (772, 2008-12-27)
ArpSender\obj\Debug\ArpSender.exe (32768, 2008-12-27)
ArpSender\obj\ArpSender.csproj.FileList.txt (502, 2008-12-27)
ArpSender\obj\Release\ResolveAssemblyReference.cache (3796, 2008-12-27)
ArpSender\obj\Release\ArpSender.MainForm.resources (180, 2008-12-27)
ArpSender\obj\Release\ArpSender.csproj.GenerateResource.Cache (772, 2008-12-27)
ArpSender\obj\Release\ArpSender.exe (32768, 2008-12-27)
ArpSender\bin\Debug\ArpSender.as (339, 2008-12-27)
ArpSender\bin\Debug\Tamir.IPLib.SharpPcap.dll (176128, 2007-07-03)
ArpSender\bin\Debug\ArpSender.exe (32768, 2008-12-27)
ArpSender\bin\Debug\ArpSender.pdb (30208, 2008-12-27)
ArpSender\bin\Release\ArpSender.as (342, 2008-12-27)
ArpSender\bin\Release\Tamir.IPLib.SharpPcap.dll (176128, 2007-07-03)
ArpSender\bin\Release\ArpSender.exe (32768, 2008-12-27)
ArpSender\ArpSender.suo (13824, 2008-12-25)
ArpSender\MainForm.Designer.cs (21080, 2008-12-27)
ArpSender\MainForm.resx (6625, 2008-12-27)
ArpSender\MainForm.cs (11326, 2008-12-27)
ArpSender\ArpSender.as (339, 2008-12-26)
ArpSender\Tamir.IPLib.SharpPcap.dll (176128, 2007-07-03)
ArpSender\说明.txt (1085, 2008-12-27)
ArpSender\obj\Debug\TempPE (0, 2008-12-25)
ArpSender\obj\Release\TempPE (0, 2008-12-25)
ArpSender\obj\Debug (0, 2008-12-24)
ArpSender\obj\Release (0, 2008-12-25)
ArpSender\bin\Debug (0, 2008-12-27)
ArpSender\bin\Release (0, 2008-12-27)
ArpSender\obj (0, 2008-12-24)
ArpSender\bin (0, 2008-12-24)
ArpSender (0, 2008-12-24)

近期下载者

相关文件


收藏者