1.

Solve : Alternate Data Streams?

Answer»

Win XP Home - Cmd.exe

The only Internal/External command which works with ADS appears to be More. Any others please?

ThanksQuote

The only Internal/External command which works with ADS appears to be More

Not really sure of the context of this statement. More can display output on the console. It can TAKE input from the output of another command or as a passed command line parameter.

Is this what you're referring to? If so, Sort, Find, and Findstr act in a similar manner.

Sort Find and Findstr are not really what I had in mind.

I'm creating ADS's but find that there's not really a lot can be done with them except by using More. Because they are totally hidden it seems none of the cmd.exe commands can access them individually.

If I create an ADS using:
Echo The quick BROWN fox jumps over the lazy dog > cookyfile.txt:brownfox
the cookyfile.txt file is created as a 0 byte file and the ADS brownfox contains the echoed string.

If I now want to display/print/edit/etc.. the contents of the ADS I cannot access it using Type, Print, Edit etc... I enter Type cookyfile.txt:brownfox and the error message returned is "The filename, directory name, or volume label syntax is incorrect."

I wondered if anyone had gotten commands to work on an ADS, am not really interested in third party products.

ThanksYou can use the mep command which is the Microsoft Editor available in the Platform SDK.

I can't help but be a bit suspicious. ADS can be used to fork file data (read: inject malicious code/rootkits) into existing files without affecting their functionality, size, or display to traditional file browsing utilities like dir or Windows Explorer.

I could only find one legitimate use of ADS for certain files in Windows that have a summary tab in their properties. This information is saved as ADS files attached to the document. This can just as easily be done through the Windows GUI or any of the Windows script languages.

What are you trying to accomplish?

good question, Sidewinder.
Quote from: Sidewinder
I can't help but be a bit suspicious...... I could only find one legitimate use of ADS for certain files in Windows that have a summary tab in their properties...... I can't help but be a bit suspicious...... What are you trying to accomplish?

Quote from: Dias de verano
good question, Sidewinder.

Wow, my little innocuous project brought out the big GUNS. All I want is a better (faster) method of displaying the contents of ADS which I am capable of writing. Had I wanted to BOMBARD all and sundry with hidden malicious code/rootkits that would already be happening.

My purpose is to add confidential comments to personal files. Sure there are other ways of doing this, such as encryption, but I just wanted to try ADS which, IMO, is simpler and secure enough for my purpose.

Now I shall try hard LINKS using the script(s) supplied by MS.

Thanks for your comments.Quote from: ValerieMay
All I want is a better (faster) method of displaying the contents of ADS which I am capable of writing.

Subsequently I found that Notepad can do everything I want so I'm upward & onward.

Quote
Wow, my little innocuous project brought out the big guns.

Nonsense. We only scrambled a few jets with their Sidewinder payloads. For the big guns we would have gone to the silos for the Titans.

Quote
All I want is a better (faster) method of displaying the contents of ADS which I am capable of writing.

A VBScript could do this faster and easier than Notepad. Less prone to error also. As long as you're doing it manually with Notepad, why not right click the document and enter built-in or custom properties?

But hey!, as long as you're upward and onward, we're happy.

Good luck. Quote from: Sidewinder on October 18, 2008, 07:37:36 AM

Nonsense. We only scrambled a few jets with their Sidewinder payloads. For the big guns we would have gone to the silos for the Titans.

Those are missiles, or what Americans call "missles". This is a little gun.



This is a big gun



Discussion

No Comment Found