Clan x86

General Forums => General Discussion => Topic started by: iago on October 14, 2004, 09:33:02 pm

Title: Hiding Files in NTFS
Post by: iago on October 14, 2004, 09:33:02 pm
This is a really cool feature of NTFS that very few people know about.  Basically, you can hide any number of files (or "streams"), inside another file.  Open a command prompt, and go to your desktop (or where ever), do do the following:

Code: [Select]
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Ron> echo "This is an empty file, trust me!" > file.txt

C:\Documents and Settings\Ron> type C:\windows\system32\sol.exe > file.txt:hidden1.exe

C:\Documents and Settings\Ron> C:\windows\system32\winmine.exe > file.txt:hidden2.txt

C:\Documents and Settings\Ron> type C:\windows\system32\winmine.exe > file.txt:hidden2.exe

C:\Documents and Settings\Ron> start .\file.txt:hidden1.exe

C:\Documents and Settings\Ron> start .\file.txt:hidden2.exe

The "echo" simply creates an empty file.
The two "type" lines embed two different .exe's inside file.txt.  No matter what you do to file.txt, you'll never be able to see them.
The next two lines run the two different hidden programs. You can run these like this at any time.

Note that this _won't_ work across a network or if you put it in a zip or anything else, since this is a feature of ntfs.
Title: Re: Hiding Files in NTFS
Post by: c0Ld on October 14, 2004, 10:22:34 pm
Yay, new way to hide my porn!
Title: Re: Hiding Files in NTFS
Post by: Quik on October 14, 2004, 10:35:21 pm
haha that pwns, thx iago..
Title: Re: Hiding Files in NTFS
Post by: Newby on October 14, 2004, 11:14:46 pm
That is hot. :)
Title: Re: Hiding Files in NTFS
Post by: Warrior on October 14, 2004, 11:25:58 pm
What aboot FAT32  ???
Title: Re: Hiding Files in NTFS
Post by: Sidoh on October 15, 2004, 01:34:04 am
What aboot FAT32  ???
Thats a silly question. :P

FAT32 is an old, outdated file system. IIRC, it doesn't even have security settings for different users! I doubt FAT32 could do this. :P
Title: Re: Hiding Files in NTFS
Post by: iago on October 15, 2004, 08:27:00 am
No, this is an NTFS-specific feature.

It's actually used a little in Windows.  For example, thumbnails of images (I'm told) are stored in a seperate stream.  Also, right click on a text file, and go to the "Summary" tab -- that information is stored in seperate streams as well.

I'll post a program to find extra streams so you can find what else has it when I get to work.  I forget what the program is called, though.
Title: Re: Hiding Files in NTFS
Post by: rabbit on October 18, 2004, 11:00:30 pm
So once you embed the file within the other file (say, a text file with a bunch of usernames & passwords into a blank text file) can you delete the original and just save/edit through start and then notepad, or what?
Title: Re: Hiding Files in NTFS
Post by: iago on October 19, 2004, 08:11:43 am
I've never tried deleting the original, but I would imagine it woulnd't work.

Incidentally, you can also hide files in folders.
Title: Re: Hiding Files in NTFS
Post by: Troop on November 29, 2004, 06:40:30 pm
Thanks iago, cool trick....
Title: Re: Hiding Files in NTFS
Post by: deadly7 on December 31, 2004, 08:48:27 pm
/me :confuse:

I've never used NTFS before (go ahead laugh.. no need)
How would you open the hidden files?
Quote
C:\Documents and Settings\Ron> start .\file.txt:hidden1.exe

C:\Documents and Settings\Ron> start .\file.txt:hidden2.exe
Those two lines, but is that done in DOS/Command Prompt?

Also, you can change the file name to like... JPG or GIF right? (99% yes, but what the hell might as well ask)
Title: Re: Hiding Files in NTFS
Post by: Quik on December 31, 2004, 08:56:57 pm
You're bumping old topics. And..

Quote
It's actually used a little in Windows.  For example, thumbnails of images (I'm told) are stored in a seperate stream.  Also, right click on a text file, and go to the "Summary" tab -- that information is stored in seperate streams as well.

I thought this was thumbs.db or whatever.
Title: Re: Hiding Files in NTFS
Post by: deadly7 on December 31, 2004, 08:58:46 pm
I bumped this topic cause I didn't understand the last part, how to get the file OUT.
Title: Re: Hiding Files in NTFS
Post by: iago on January 01, 2005, 03:14:55 am
I can't remember, go find an article on AFS :)

Incidentally, I read something that sounded to me like SP2 is using these to store information on downloaded files