如何使用wireshark解码SQL Server流量?

编程入门 行业动态 更新时间:2024-10-25 06:27:30
本文介绍了如何使用wireshark解码SQL Server流量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我可以使用wireshark捕获数据包,但我无法将流解码为任何可理解的内容.

WireShark 错误数据库中的

  • NMDecrypt:nmdecrypt.codeplex/releases/view/85581
  • I can capture the packets using wireshark, but I can't decode the stream into anything intelligible.

    This item in the WireShark bug database suggests that maybe this isn't possible in SQL Server 2005 or newer. But several people on Stack Overflow claimed this was a good method in answers to this question:

    How to validate SQL Server traffic is encrypted?

    Any help appreciated.

    解决方案

    Edit (2017-05-02): Microsoft Network Monitor - has been replaced by Microsoft Message Analyzer - which serves the same purpose. See also comment below this answer or the answer further down for how to use it!

    Note: Microsoft Message Analyzer was deprecated in late 2019, and is no longer available for download.

    Original Answer

    There is another much underrated tool from Microsoft itself: 'Microsoft Network Monitor'. Basically this is very similar to wireshark with the exception that some specific MS protocols have better parser and visualisation support than wireshark itself and obviously it would only run under windows ;-).

    The tool is quite old and looks abandoned (havn't seen a newer release so far) but still does an good job and the grammar for defining new protocols is quite neat/interesting - so this still possess a lot of power for the future.

    Analysis Example - Recording is filtered for TDS - so the other packets are discared mostly:

    This is also true for sql server connections. The MNM can even visualize the resultsets going over the wire - quite neat. Nonetheless wireshark as mentioned above would be sufficient to validate encryption and applied certificates on the wire itself. Means it can understand the TDS-Protocoll fully.

    Handling TLS

    Also with an extension (so called experts) 'NmDecrypt' and the right certificates (including private keys) - it is possible to decrypt protocolls - quite nice for TDS which uses TLS INSIDE of TDS - no wonder - no one has really implemented that yet as a fully supported protocoll for wireshark ;)

    So far - regarding MSSQL-Traffic - or to be more precice TDS-Protocol this is the best tool I've come across so far. Wireshark is cool - but in this case MNM is 'better'. Have phun! ;)

    Links for the tools:

    • Microsoft Network Monitor: www.microsoft/en-us/download/details.aspx?id=4865
    • NMDecrypt: nmdecrypt.codeplex/releases/view/85581

    更多推荐

    如何使用wireshark解码SQL Server流量?

    本文发布于:2023-10-26 09:51:27,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1529804.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:如何使用   流量   SQL   wireshark   Server

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!