<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>plasmid.co.uk &#187; ADS</title>
	<atom:link href="http://plasmid.co.uk/tag/ads/feed/" rel="self" type="application/rss+xml" />
	<link>http://plasmid.co.uk</link>
	<description>because life is faster in reverse ...</description>
	<lastBuildDate>Thu, 20 May 2010 23:07:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://plasmid.co.uk</link>
  <url>http://plasmid.co.uk/wp/favicon.ico</url>
  <title>plasmid.co.uk</title>
</image>
		<item>
		<title>&#8216;Hiding&#8217; information using ADS</title>
		<link>http://plasmid.co.uk/2008/04/08/hiding-information-using-ads/</link>
		<comments>http://plasmid.co.uk/2008/04/08/hiding-information-using-ads/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 22:41:40 +0000</pubDate>
		<dc:creator>plasmid</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ADS]]></category>
		<category><![CDATA[data streams]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://plasmid.co.uk/2008/04/08/hiding-information-using-ads/</guid>
		<description><![CDATA[Introduction
This tutorial will explore the potential for using 'Alternate Data Streams' (ADS) to store information on an NTFS partition. All of the steps detailed below can be accomplished directly from within Windows. 
Theory
Files act as pointers to physical data on a storage medium; they are a convenience, a way of managing information on a computer [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>This tutorial will explore the potential for using 'Alternate Data Streams' (ADS) to store information on an <abbr title="NT File System">NTFS</abbr> partition. All of the steps detailed below can be accomplished directly from within Windows. </p>
<p><strong>Theory</strong></p>
<p>Files act as pointers to physical data on a storage medium; they are a convenience, a way of managing information on a computer as discrete units. It should be this fantastically simple - one pointer for one file - but it seems Microsoft had other ideas...<br />
Macintosh computers use a different file system to Windows computers. It was decided that NTFS should be able to emulate some aspects of the Mac file system to improve file compatibility. As a result, it is possible to 'attach' data to a file in a way that is not visible to users (oh dear!).</p>
<p><strong>Getting your hands dirty</strong></p>
<ol>
<li>Load up a command-prompt Window (Start->Run->'cmd').</li>
<li>Create a file to run this demonstration on. In the console type: <code>echo Hello, World! &gt; test.txt</code>.<br />
<strong>(The file 'test.txt' now contains 16 bytes of information. This is the default data stream)</strong></li>
<li>In the console, enter <code>type test.txt</code> to show the information in 'test.txt'.</li>
<li><strong>Let's hide some data!</strong> In the console type <code>echo I am hidden! > test.txt:hidden.txt</code>. Notice the colon (:) - this is very important!</li>
<li>If you repeat step 3, you should only see 'Hello, World!' printed to the console. Check the properties of the file using Windows Explorer and you'll arrive at the same conclusion, the file still contains only 16 bytes. You could even enter in <code>type test.txt:hidden.txt</code> to try and see the text in 'hidden.txt', but it will return an error. Where is the hell has the information you just entered gone? </li>
<li>To reveal the contents of 'hidden.txt', type <code>more &lt; test.txt:hidden.txt</code> in the console, et voila - the magically disappearing information has made a miraculous reappearance!</li>
<li>The file 'hidden.txt' is now linked with 'test.txt'. You could say that 'test.txt' is acting as a pointer to two data streams. Furthermore, if you copy 'test.txt' to another folder - 'hidden.txt' is copied with it!</li>
</ol>
<p><strong>Conclusion</strong></p>
<p>The above is a basic demonstration of how ADS can be used to store hidden information. The article at <a href="http://www.governmentsecurity.org/forum/index.php?showtopic=3607">governmentsecurity.org</a> goes on to explore how an executable could be hidden within a file too. I've written a small batch file that attaches a user-defined message to itself (using ADS) and presents it using notepad. To remove the hidden file, you can either try the method suggested at gov.sec. or just delete the batch file itself!</p>
<p><strong>Download files</strong></p>
<p><a href='http://plasmid.co.uk/wp/wp-content/uploads/2008/04/ads_demo.rar' title='ADS Demonstration'>ads_demo.rar</a> - extract and run.</p>
]]></content:encoded>
			<wfw:commentRss>http://plasmid.co.uk/2008/04/08/hiding-information-using-ads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.100 seconds -->
