|
 |
|
 |
11-03-2004, 01:01 AM
|
#1 (permalink)
|
|
Registered User
Join Date: Oct 2004
Posts: 22
|
How to hide a file (any file)?
I want to write a program that will hide a file so that noone can see it in the directory. And will unhide it when requesting. What technology i should know to do that?
|
|
|
11-03-2004, 02:58 AM
|
#2 (permalink)
|
|
Newbie
Join Date: Jun 2002
Location: Denmark
Posts: 1,709
|
This is a system dependant thing, it is handled within the filesystem, and usualy you would use functions like fstat(), lstat(), stat() and chmod().
These however are not ansi C/C++ compliant.
|
|
|
11-03-2004, 06:50 PM
|
#3 (permalink)
|
|
Mac Os X User(I hate win)
Join Date: Oct 2004
Posts: 138
|
i'm not sure if you can rename files in c++ or not, but if you can, rename a file to have a period in the front of the name, it will be considered a hidden file by the os. i know that this works on macs
Last edited by Androto; 11-04-2004 at 07:30 PM.
|
|
|
11-04-2004, 03:17 AM
|
#4 (permalink)
|
|
Code Monkey
Join Date: Oct 2004
Posts: 57
|
Only in non-MS operating systems will that work, Androto... You can see all files in Windows unless they have been hidden in their file properties...
|
|
|
11-04-2004, 05:27 AM
|
#5 (permalink)
|
|
Registered User
Join Date: Oct 2004
Posts: 22
|
Yes, that's right.
User can unhide easily by choosing Folder Option (windows)/ and set view unhide file.
I mean that the file will hide all time even user set view unhide file. And just my program can set unhide attribute to the file only.
So where node i stay to learn?
|
|
|
11-04-2004, 07:29 PM
|
#6 (permalink)
|
|
Mac Os X User(I hate win)
Join Date: Oct 2004
Posts: 138
|
Quote:
|
Originally Posted by Androto
i'm not sure if you can rename files in c++ or not, but if you can, rename a file to have a period in the front of the name, it will be considered a hidden file by the os. i know that this works on macs
|
what don't you understand by this?! why would i post that up here if i knew it wouldn't work, anyways, why does windows not use this? is soo much easier to hide files.
|
|
|
11-04-2004, 10:15 PM
|
#7 (permalink)
|
|
Newbie
Join Date: Jun 2002
Location: Denmark
Posts: 1,709
|
Quote:
|
Originally Posted by john_tran
I mean that the file will hide all time even user set view unhide file. And just my program can set unhide attribute to the file only.
So where node i stay to learn?
|
Start writing your own filesystem, where the OS itself can be kept from viewing a file with a specific show/hide bit set...
Apart from that I don't see any solution.
|
|
|
11-05-2004, 02:51 AM
|
#8 (permalink)
|
|
Registered User
Join Date: Oct 2004
Posts: 22
|
Really? Oh, i dont think so. Because we also can unhide a system file!!!
Oh, nobody know my program?
|
|
|
11-05-2004, 03:04 AM
|
#9 (permalink)
|
|
Newbie
Join Date: Jun 2002
Location: Denmark
Posts: 1,709
|
Quote:
Oh, nobody know my program?
|
Are you talking about SuckIT ( http://www.phrack.org/phrack/58/p58-0x07) ?
I wasn't going for a program here, I was talking about the mere programming needed to achieve the desired solution.
|
|
|
11-05-2004, 04:21 AM
|
#10 (permalink)
|
|
Registered User
Join Date: Oct 2004
Posts: 22
|
No, i not use porgram like that.
I means that what i should learn to program by c++ to hide the file. Just it's all.
I see some application can do that, but i dont know how they do that. So i really want to know abou this tech.
(application set the file hide, user cannot unhide it if they do not use this program. Just only this program can unhide the file, you know what i mean?)
|
|
|
11-06-2004, 10:18 AM
|
#11 (permalink)
|
|
Regular Contributor
Join Date: Dec 2003
Location: Mary Esther, FL
Posts: 189
|
If you could ever figure out such an ability the video game industry would be trampling down your door with offers. I agree with redhead. You would have to build an entirely new OS so that general ACSII, HEX, and other text editors wouldn't have a clue as to what the data means.
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -8. The time now is 04:41 PM.
|
Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
|
 |
|