The Anti Hacker League !! Forum Index
Author Message
<  Windows  ~  write ur own folder hiding sotware!
c0d3krak3r
PostPosted: Sun Jul 08, 2007 5:37 pm  Reply with quote
Site Admin
Site Admin


Joined: 06 Jul 2007
Posts: 129
Location: india

There are many softwares which you can use to hide the files on ur
Windows machine. So wot they do actully? No magic, ofcourse.

Windows gives EVERY file or folder certain flags called ‘Attributes’.
These attributes tell the system what can and cannot be done with the
file.
For example, the Read Only attribute tells the system to not allow
changes to the file.

Files or folders with the combination of Hidden and System attributes
are considered "Super Hidden" by Windows.
These super hidden files or folders cannot be seen by simply making
hidden folders visible.

And that is wot these folder hiding softwares do.

File attribute for a system file is 4. And file attribute for a hidden
file is 2. So, in order to make a superhidden file,
we need to set the attribute of a file as 6 (=4+2).

And for that, We need to make use of a API, named SetFileAttributes.

For example, i want to hide (or super-hide) a file c:omk.c. So i
write the code (in VB.Net) as follows:

Code:
Private Declare Function SetFileAttributes Lib "kernel32" Alias
"SetFileAttributesA" (ByVal lpFileName As String, ByVal
dwFileAttributes As Integer) As Integer

Const HMCHIDDEN As Short = 2
Const HMCSYSTEM As Short = 4
Const HMCNORMAL As Short = 128
Const HMCSUPERHIDDEN As Integer = HMCHIDDEN + HMCSYSTEM


Public SelectedFile As String

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim returnvalue As Object
SelectedFile = "c:omk.c"
returnvalue = SetFileAttributes(SelectedFile, HMCSUPERHIDDEN)
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim returnvalue As Object
SelectedFile = "c:omk.c"
returnvalue = SetFileAttributes(SelectedFile, HMCNORMAL)
End Sub

_________________
Avinash
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
mariatamis
PostPosted: Thu Sep 03, 2009 9:43 am  Reply with quote



Joined: 03 Sep 2009
Posts: 3

I will apply this formula in my computer today itself and i will let you know very soon that it is working or not. Thanks for giving such information because i was very eager to know that how to hide the file in windows.

_________________
"Ambition is the last refuge of the failure"
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
All times are GMT

View next topic
View previous topic
Page 1 of 1
The Anti Hacker League !! Forum Index  ~  Windows

Post new topic   Reply to topic


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Template: Ad Infinitum