|
-
April 1st, 2009, 06:09 AM
#1
Alternate Dat Streams (ADS) enumeration in JAVA?
Hi guys, perhaps most of you will know of Alternate Data Streams. These are a feature of the NTFS file system that were introduced beginning with Windows NT 3.1 and which were added in order to support Macintosh's HFS which employs resource forks so that the system can maintain metadata about the file, for example icons.
The fact is that ADS provide a way to create legitimate files on a Windows system that can contain data, scripts or executable code but that there is no native tools on Window systems (prior to Vista, which now has a native command to view ADS) that can detect the presence of ADS.
There are a few ways ADS can be created at the command line, one is as follows:
c:\ads>notepad myfile.txt:ads.txt
Now what i was concerned with is if it is possible to program a tool to enumerate ADS associated with a specific file, or better still all files in a directory and the directory itself (as ADS can also be attached to directories)in JAVA. I know that there are tools out there that do this (LADS.exe, ADSSpy.exe) however these are programmed in other languages, i believe a google search also retrieves source code to do this in c and c++.
ADS can be treated as files in JAVA (i have written to and read from ADS just to check) by simply giving their path ( sorry this may seem obvious).
so does anyone know if this is possible in JAVA? or know of any source codes to do this/something similar in JAVA?
Thanks guys
Last edited by ronrothy; April 1st, 2009 at 06:11 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|