[DUG] Renaming file in use
Rohit Gupta
r.gupta at xtra.co.nz
Fri Dec 2 18:28:48 NZDT 2005
Sean,
I thought I would try this out and you are right, another crappo from
Microsoft. Not only can you rename the file, it also renames the path
in the shortcut that launched it. Another way a virus can get in. And
you can even rename the dll thats in use. Further to that if you rename
a system dll, it silently copies it from the backup. All test on
win2k. Will all this really work the same way on XP, 2kserver,
2k3server, Terminal Services, a pc using Domain Server and Longhorn ????
I would still maintain that its is idotic to rely on this mechanism.
Any primitive virus protection thingy should foil this. But does it ?
:-( Zonealarm certainly did not complain.
I despair. Its worth the effort to write a virus to teach MS a lesson.
Just for the record OS2 had the same weakness and I created a fuss about
it in public forums then. :-( But then I forget... windows has the
basis as OS2.
Sean Cross - CRM wrote:
>RenameFile should work on open files for Windows NT and up.
>
>Regards
>
>Sean
>-------------------------
>Sean Cross
>Systems Development Manager
>CRM
>PO Box 230
>Napier
>DDI: 06 834 0362
>Mobile: 021 270 3466
>Email: sean.cross at crm.co.nz
>
>Offices located in Auckland, Napier, Wellington & Christchurch
>
>...
>
>
>>Offtopic Nostalgic thought (sigh) Unix handles renaming
>>files in use much better. It allows it no problem. Any
>>files with the old version open still access the old data
>>file which is preserved until closed. When reopened it gets
>>the new version. Very transparent. Windows just doesn't
>>allow it, even if the file is only open read-only. If I
>>remember VMS did something even smarter with maintaining
>>multiple versions of files as part of the filesystem.
>>
>>The scheme I use is for programs.
>>
>>John
>>
>>
>>
>>
>
>_______________________________________________
>Delphi mailing list
>Delphi at ns3.123.co.nz
>http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
>
>
More information about the Delphi
mailing list