On Wed, Mar 12, 2003 at 08:46:35AM -0800, John Balos said:

> Adrian, I had this exact problem a few months ago. The perpetrator had
> put lpt com, etc folders in there. I was able to delete a few hundred
> but it was a long process. Even after deleting so many of them there
> were still an innumerable amount of folders and MP3 and wav files in the
> location where he placed them. After looking throughout active directory
> I also found some corrupted objects. Because I didn't know the depth of
> damage done, I started from scratch. It would have taken me a very long
> time to delete every folder and subfolders if I was to use the rm.exe
> tool. I've learned my lesson. 

What kind of corrupted objects?  How can uploading files to an FTP corrupt
objects in your Active Directory?  Sounds like a security hazard to me.

You could have done a recursive delete based on strings.  I don't know how
to do it in Windows, but if you had this problem in Unix you could have gone:

        # rm -rf `find . -name com1`

That would have recorded all the output from stdout from the results of 'find'
and passed them as a parameter to 'rm.'  that would have successfully
removed all the directories named 'com1' under the current directory.  You
could then have done this for the other reserved names, such as lpt1, con, etc.

If you wanted to change their names so you could sift through all the
uploaded data, you could have used the 'mv' utility to give them more
"friendly" names and then browsed through them manually.

How does this work in Windows?


-- 
Adam Smith
Information Technology Officer
SAGE Automation Ltd.

[EMAIL PROTECTED]
http://www.sageautomation.com

------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to