NTFS "Secrets"?
Microsoft distributes at least two Sysinternals tools for this.
- Junction lets you manipulate junction points (symbolic links).
-
Streams will show you alternate data streams. That page also shows you the
:stream
syntax to manipulate them from command-line.
Alternate Data Streams - you can use the LADS tool to enumerate them.
You can create them for example by doing:
notepad test.txt:adsname1
notepad test.txt:adsname2
notepad test.txt
All 3 will be shown in explorer as 1 file but they are all different streams attached to that same filename.
NTFS supports file names that the Win32 API doesn't. For example the POSIX subsystem allows the following names (from the Windows Internals book):
"TrailingDots..."
"SameNameDifferentCase"
"samenamedifferentcase"
"TrailingSpaces "
Apparently you can still see them all by using 'dir /x'
Its also possible to create files with really long file paths (up to 32,000 characters). You can still see them in explorer but you can't delete them easily.
Windows Internals by Mark Russinovich has a chapter on NTFS and what it does and doesn't support. In the fifth Edition Chapter 11 covers all the File Systems Windows NT supports, and goes into details on the internals of NTFS.