传输过程中如何更改文件内容 [英] How to change file contents during transmission

查看:169
本文介绍了传输过程中如何更改文件内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我已经开发了一个客户端服务器身份验证软件,可以检查文件以进行验证.客户端使用校验和发送文件和服务器身份验证.我使用过C#winforms,一切正常.现在显示我的程序正常运行,如何在服务器接收之前在传输过程中修改文件或添加数据.
你有什么主意吗?请紧急帮助我.
谢谢

Hi I have developed a client ,server authentication software which checks the file for validation . Client sends file and server authenticates using checksum. I have used C# winforms, everything is working fine. Now to show my program is working properly how can I modify the file or add data during transit before the server receives it.
Have u got any idea. Please help me urgent.
Thank you

推荐答案

在运输过程中无法对其进行修改,但可以在中间建造一个人.

这将位于客户端和服务器之间.

客户端将数据传输给中间的人,中间的人在将数据发送到服务器时重复/修改数据.

响应也会发生同样的事情.从客户端和服务器的角度来看,没有任何变化,因此可以随时将其删除.

您可以使用NetworkStream在.Net中构建一个简单的网络中继器.
You can''t modify it in transit but you could build a man in the middle.

This would sit between the client and the server.

The client transmits to the man in the middle, the man in the middle repeats/modifies the data as its sent to the server.

Same thing happens with the response. From both a client and server point of view nothing changes so it can be removed at any point.

You can build a simple network repeater in .Net using NetworkStream.


这篇关于传输过程中如何更改文件内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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