Hide files in MS Windows( exploit the bug in rename operation)
(click the image for large size)We all know the file path length has some limit.
Now if you creat a deep "folder" tree then at some point you will not be able to create any more folders.
Suppose we have such a folder tree.
We can build the tree using this batch file.
----------------- (Cut and paste this in a text file and rename it foobar.bat file)
mkdir deep_tree
copy foobar.bat deep_tree
cd deep_tree
foobar.bat
------------------------
Run the batch file and stop it when you get the message "The filename or extension is too long"
Now traverse the created tree..say go some 6 levels deep.
Now rename the folder deep_tree to a very long name such that the path length to some lower level tree exceeds the path length limit.( We can do this because the rename operation doesnot check this.)
The end result is : the lower level folder becomes un-accessible .
In fact,You cannot go into it by navigating through mouse.
Also,You can not delete/cut it/copy it
Also,You cannot search its contents.
Also,The size of its contents will not come in the size of any of its ancestors.

0 Comments:
Post a Comment
<< Home