从串行端口捕获消息 [英] capture message from serial port

查看:73
本文介绍了从串行端口捕获消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在编写一个应用程序,它将使用任何聊天工具(例如gmail,yahoo等)来跟踪员工的所有聊天记录.

我在想是否可以从串行端口捕获消息.

任何人都对此有所了解,因此您可以在任何示例中为我提供帮助.

谢谢

Hi All,

I am writing an application which will trace all chat of employees using any chat facility like gmail, yahoo etc.

I am thinking is it possible to capture a message from serial port.

Anyone have knowledge regarding this so that you can help me with any example.

Thanks

推荐答案

您可以使用SerialPort.GetPortNames方法检查端口是否正在使用.
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.getportnames.aspx [ ^ ]

打开端口后,除非使用硬件设备,否则您将无法监视串行端口上的活动.

您可以使用Sysinternals的Portmon来监视串行端口的活动,但是您需要事先知道要使用哪个端口.
You can check to see if a port is being used by using SerialPort.GetPortNames Method.
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.getportnames.aspx[^]

Once a port is opened you cannot monitor the activity on a serial port, unless you are using a hardware device.

You can use Portmon from Sysinternals to monitor serial port activity but you need to know which port is going to be used beforehand.


好吧,您可以捕获通过串行端口传输的消息,但是捕获所有永远不会接触串行端口的东西并不会对您有任何帮助.

你不能做你想做的.为什么?因为通过GMail,Yahoo IM和许多其他聊天对象都被加密了.您看不到这些加密对话中的内容.
Well, you could capture a message going over a serial port, but that''s not going to do you any good at all capturing something that never touches a serial port.

You cannot do what you want. Why? Because the chat seesions over GMail, Yahoo IM, and many others are all encrypted. You cannot see what''s inside those encrypted conversations.


这篇关于从串行端口捕获消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆