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

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

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

使用道具 举报

22#
tangheng1128 发表于 2016-5-23 18:51:43 | 只看该作者
不错不错!
回复

使用道具 举报

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 调试器,
而不是由此对话框处理。
24#
在回忆中的记忆 发表于 2016-6-24 10:02:42 | 只看该作者
下来改造一下,获取JSSIONID
25#
bbspcs 发表于 2016-6-24 10:49:47 | 只看该作者
1111111111111111111111111111
26#
312863368 发表于 2016-6-30 17:40:48 | 只看该作者
楼主 如何关闭抓包?
27#
 楼主| 乔克斯 发表于 2016-7-1 09:43:56 | 只看该作者
312863368 发表于 2016-6-30 17:40
楼主 如何关闭抓包?

自己加个按钮暂停吧。=A=貌似没暂停功能。
28#
36183284@qq.com 发表于 2016-7-5 11:11:57 | 只看该作者

也同问,例子说明的图中有显示数据内容,但这份程序不能取到内容。
29#
36183284@qq.com 发表于 2016-7-5 11:23:03 | 只看该作者
我想知道怎么才可以吧Content内容也抓出来!
30#
ychotel 发表于 2016-7-19 11:34:13 | 只看该作者
正需要,谢谢楼主
您需要登录后才可以回帖 登录 | 加入CSkin博客

本版积分规则

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

Powered by Discuz! X3.2  © 2001-2013 Comsenz Inc.  Designed by ARTERY.cn
GMT+8, 2024-4-20 11:42, Processed in 0.583549 second(s), 25 queries , Gzip On.

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