更改文件的文件扩展名可以保护您的计算机吗? [英] can changing file's file extension protect your computer?

查看:122
本文介绍了更改文件的文件扩展名可以保护您的计算机吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我有一个项目的想法,在开始之前我想知道一些事情.我的操作系统是Windows 7,我的项目的语言将是C#.

第一,如果病毒具有自定义扩展名,它们是否能够操纵,破坏文件或与文件交互?例如,假设您使用自己的程序制作文件,并且文件起作用的唯一方法是通过程序的自定义扩展名.

如果一个为"no",是否可以将计算机中所有文件(包括系统文件)的扩展名更改为您自己的扩展名?


项目概念:到目前为止,您可能已经大致了解了我要实现的目标.该程序的概念是通过单击程序扩展名的按钮来更改所有文件或选定的文件,并允许它们在程序运行时一直工作.如有必要,可以将其更改回其先前的扩展.希望通过防止它们识别和/或读取文件来保护这些文件免受病毒侵害.希望:)

MR.Angel Mendez,

hello, I have an idea for a project and I would like to know a few things before I start. My operating system is windows 7 and my project''s language is going to be in C#.

One, are viruses able to manipulate, damage or interact with files if they have a custom extension? for example lets say you make a file with your own program and the only way the file works is through your program''s custom extension.

if one is "no", is it possible to change the extension of all files in your computer(including system files) to your own extension?


project concept: By now you may have gotten a general idea of what I am trying to achieve. The concept of this program is to change all or selected files with a click of a button to the program''s extension and allow them to work as long as the program is running. And if necessary able to change them back to its previous extensions. This will hopefully protect these files from viruses by preventing them from recognizing and or reading the files. hopefully :)

MR.Angel Mendez,

推荐答案

病毒可以感染任何可以执行的文件,文件扩展名并不重要.

不管您给它什么扩展名,每个可执行文件都可以被识别,如果您提出一种全新的可执行文件格式,那将是很多工作....

此外,更改系统文件的扩展名(如果允许)将不太可能使您或Windows满意,这会引起各种问题.

如何阻止病毒感染您编写的支持自定义扩展的应用程序?

我为这个主意鼓掌,但我认为这不太实用.

A virus can infect any file which can be executed, the file extension is not important.

Each executable file can be identified no matter what extension you give it, if your proposing a whole new executable format then that would be a whole lot of work....

Additionally, changing the extension of system files (if allowed) would be very unlikely to make you or Windows happy, it would cause all sorts of issues.

What''s to stop the virus infecting the application you write to support the custom extensions?

I applaud the idea, but I don''t think it would be very practical.

regards,


我担心这不会发生.可以打开文件并通过病毒分析,以发现其真正目的.大多数文件包含一些头文件,这些头文件暴露了病毒的真实含义.例如,通过将dll或exe文件重命名为带有txt扩展名的文件,仍然可以发现它实际上是dll或exe文件.

问候,

曼弗雷德(Manfred)
I''m afraid that is not going to happen. A file can be opened and analzed by a virus to discover it''s true purpose. Most files contain some headers that betray to the virus what they really are. For example by renaming a dll or an exe file to a file with a txt extension it could still be found out to be what it really is namely a dll or an exe file.

Regards,

Manfred


这篇关于更改文件的文件扩展名可以保护您的计算机吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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