04-05-2010, 03:00 PM
Here are a few codes that I found that you can use.
I re-write this so that it will work on your keylogger, rat, etc...
Imports:
To make it read only:
To makeit not a hidden file:
To set the file's last accessed date:
To mark the file as being a system file:
To make the file compressed:
To make the file a temporary file:
I re-write this so that it will work on your keylogger, rat, etc...
Imports:
Code:
System.IO.File
To make it read only:
Code:
Dim attribute as System.IO.FileAttributes = FileAttributes.ReadOnly
File.SetAttributes(Application.ExecutablePath, attribute)
To makeit not a hidden file:
Code:
dim attribute as System.IO.FileAttributes=IO.FileAttributes.Normal
System.IO.File.SetAttributes(Application.ExecutablePath,attribute)
To set the file's last accessed date:
Code:
System.IO.File.SetLastAccessTime(Application.ExecutablePath, Date.Now)
To mark the file as being a system file:
Code:
Dim attribute As System.IO.FileAttributes = IO.FileAttributes.System
System.IO.File.SetAttributes(Application.ExecutablePath, attribute)
To make the file compressed:
Code:
Dim attribute As System.IO.FileAttributes = IO.FileAttributes.Compressed
System.IO.File.SetAttributes(Application.ExecutablePath, attribute)
To make the file a temporary file:
Code:
Dim attribute As System.IO.FileAttributes = IO.FileAttributes.Temporary
System.IO.File.SetAttributes(Application.ExecutablePath, attribute)