Skip to content

Instantly share code, notes, and snippets.

@inaz2
Last active December 26, 2015 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inaz2/7165748 to your computer and use it in GitHub Desktop.
Save inaz2/7165748 to your computer and use it in GitHub Desktop.
ADS圧縮形式についてのメモ(NTFSのAlternate Data Streamsにデータを隠す)
> dir
2013/10/26 14:46 <DIR> .
2013/10/26 14:46 <DIR> ..
2013/10/26 14:37 1,048,576 foobar.txt
1 個のファイル 1,048,576 バイト
2 個のディレクトリ 603,434,876,928 バイトの空き領域
> type NUL > compressed.ads
> type foobar.txt > compressed.ads:foobar.txt
> del foobar.txt
> dir
2013/10/26 14:47 <DIR> .
2013/10/26 14:47 <DIR> ..
2013/10/26 14:47 0 compressed.ads
1 個のファイル 0 バイト
2 個のディレクトリ 603,434,876,928 バイトの空き領域
> dir /R
2013/10/26 14:47 <DIR> .
2013/10/26 14:47 <DIR> ..
2013/10/26 14:47 0 compressed.ads
1,048,576 compressed.ads:foobar.txt:$DATA
1 個のファイル 0 バイト
2 個のディレクトリ 603,434,876,928 バイトの空き領域
> mklink foobar.txt.ads compressed.ads:foobar.txt
foobar.txt.ads <<===>> compressed.ads:foobar.txt のシンボリック リンクが作成され
ました
> type foobar.txt.ads > foobar.txt
> del foobar.txt.ads compressed.ads
> dir
2013/10/26 14:49 <DIR> .
2013/10/26 14:49 <DIR> ..
2013/10/26 14:48 1,048,576 foobar.txt
1 個のファイル 1,048,576 バイト
2 個のディレクトリ 603,434,876,928 バイトの空き領域
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment