作者: 乔克斯
查看: 54583|回复: 60
打印 上一主题 下一主题

[源码] 【网卡抓包】C#抓包,SnifferHttp使用网卡获取Http请求数据

  [复制链接]
23#
丰少 发表于 2016-5-25 22:50:18 | 只看该作者
************** 异常文本 **************
Sniffer.SnifferException: Could not set the socket to receive all ---> System.Net.Sockets.SocketException: 参考的对象类型不支持尝试的操作。
   在 System.Net.Sockets.Socket.IOControl(Int32 ioControlCode, Byte[] optionInValue, Byte[] optionOutValue)
   在 Sniffer.SnifferSocket.SetupSocket(Socket socket)
   --- 内部异常堆栈跟踪的结尾 ---
   在 Sniffer.SnifferSocket.SetupSocket(Socket socket)
   在 Sniffer.SnifferSocket.Sniff(String ip)
   在 snifferHttp.frmMain.Form1_Load(Object sender, EventArgs e)
   在 System.Windows.Forms.Form.OnLoad(EventArgs e)
   在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   在 System.Windows.Forms.Control.CreateControl()
   在 System.Windows.Forms.Control.WmShowWindow(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已加载的程序集 **************
mscorlib
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8670 (QFE.050727-8600)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
snifferHttp
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///H:/编程/C%23抓包,SnifferHttp使用网卡获取Http请求数据/SnifferHttp/bin/Debug/snifferHttp.exe
----------------------------------------
System.Windows.Forms
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8670 (QFE.050727-8600)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8670 (QFE.050727-8600)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8670 (QFE.050727-8600)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8670 (QFE.050727-8600)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8670 (QFE.050727-8600)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8670 (QFE.050727-8600)
    基本代码: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
mscorlib.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8670 (QFE.050727-8600)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。
22#
tangheng1128 发表于 2016-5-23 18:51:43 | 只看该作者
不错不错!
回复

使用道具 举报

21#
gxy07 发表于 2016-5-9 15:57:34 | 只看该作者
谢谢分享
回复

使用道具 举报

20#
hilic 发表于 2016-4-6 17:49:30 | 只看该作者
赞一个~~
回复

使用道具 举报

19#
q25124726 发表于 2016-2-2 13:14:59 | 只看该作者
恩 来看看吧
18#
meitao20 发表于 2016-1-26 12:44:36 | 只看该作者
赞一个,学习下
17#
verygood0519 发表于 2016-1-18 15:31:58 | 只看该作者
下载下来看看
16#
longqjl 发表于 2015-12-26 21:20:44 | 只看该作者
请问我发现这个截包只能截发出的tcp,收到的不能截吗?
15#
gxshare 发表于 2015-12-7 15:42:34 | 只看该作者
huihui0371 发表于 2015-8-17 00:14
我想知道怎么才可以吧Content内容也抓出来!!!

同问
14#
 楼主| 乔克斯 发表于 2015-11-28 09:36:52 | 只看该作者

请勿水帖。
您需要登录后才可以回帖 登录 | 加入CSkin博客

本版积分规则

QQ|申请友链|小黑屋|手机版|Archiver|CSkin ( 粤ICP备13070794号

Powered by Discuz! X3.2  © 2001-2013 Comsenz Inc.  Designed by ARTERY.cn
GMT+8, 2024-5-19 01:59, Processed in 0.627958 second(s), 24 queries , Gzip On.

快速回复 返回顶部 返回列表