读了TCP数据嗅探 [英] read sniffing data over tcp
问题描述
我开发的应用程序,是听来PC的数据并将其存储在一个数据库
,当我试图使用任何嗅探软件对其进行解码的数据,我可以读它...
,但在我的代码....我不能在所有$ b $阅读b检查来在这样的格式
i'm developing application that is listening to the data coming to the pc and store it in a db when i'm trying to use any sniffing software it decode the data and i can read it... but in my code ....i cant read it at all it come in a format like that
1822262151622341817118815518211616121520941131921572041519912321413018224510453482062312258624219217426213385792952422362282081777270129716688629114817282188771708157542505055171418651781981425595109572128317191993018793431541418175198551682143218916536118562071014546919618158204181231187237183188160147127165111798312311810419822146114761993113815821216617541542372062129733198212250147199288115346102031191275215728146245198190171121209115149107193226253199151253205183146112072202559697791491441131572351381412278441552554817712614110121823714822712523618924690185291182071331471286244143181469018522814822821118012620321315924832238219115405615512392145202385512115735771691111055935782371281492476567165158924021493139815144225143762294713291762001113814720516216041120169912317914878167571392103510118386589521910621319622274158971538465206168139190127867123282255271781242497522124211517622131122113236255230254211206911242051832545515823012124925217318223920523316923122925514321122343602492471242........
任何一个可以告诉我,什么样的数据是这一点,任何代码来解决它?
can any one tell me what kind of data is that and any code to solve it out??
推荐答案
要看到什么是真正的数据包嗅探器的样子,检查出的 Wireshark的。有许多不同的协议通过TCP,其中许多人都是二进制。那些没有可能使用Unicode字符,这是两个字节的字符,以便它们的ASCII显示将毫无意义。
To see what a real packet sniffer looks like, check out WireShark. There are many different protocols over TCP, and many of them are binary. Those that aren't may be using unicode characters, which are two-byte characters so an ascii display of them would be meaningless.
总之,数据你显示相当意义的。它看起来像十进制数据,你串联了一堆解释为字节或整数值的二进制流的十进制表示的?这可以解释它。你应该通过 System.TextEncoding.ASCII.Decode运行流启动
你可能会看到一些可识别的字符串。然后尝试 System.TextEncoding.Unicode.Decode
等
Anyway, the data you're displaying is pretty meaningless. It looks like decimal data, are you concatenating a bunch of decimal representations of the binary stream interpreted as byte or integer values? That would explain it. You should start by running the stream through System.TextEncoding.ASCII.Decode
You'll probably see some recognizable strings. Then try System.TextEncoding.Unicode.Decode
, etc.
这篇关于读了TCP数据嗅探的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!