Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I create a folder named nul (or con, prn,etc) which are DOS reserved names, I will not be able to edit (or modify or delete) files inside it directly. So my doubt is that, if the PC is infected with a worm (or virus or trojan), will it be able to infect the .exe files inside the folder since most of them just add extra scripts to the existing files. Thanks in advance

share|improve this question
1  
A worm doesn't do this! Differences between Worms, Trojans, Virus's etc –  Dave Sep 18 '12 at 11:04
    
@DaveRook: sorry about that but basically my doubt is whether malwares can access these files in the null folder –  Jack Sep 18 '12 at 11:06
    
Relying on bugs (documented or not, put there on purpose or not) in the OS to protect you against software that exploits bugs in the OS, to do harm. I don't think it will work. –  richard Sep 18 '12 at 11:21

1 Answer 1

Malware running in your user context can do virtually everything you can do. And you are able to access/modify/delete such a folder as well as its contents. All you need to do is prepend the absolute path with \\.\ (e.g. \\.\C:\Temp\con).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.