> For the complete documentation index, see [llms.txt](https://kwcsec.gitbook.io/the-red-team-handbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kwcsec.gitbook.io/the-red-team-handbook/techniques/defense-evasion/hiding-our-payloads/ads.md).

# ADS

Creating ADS in c++

```
CreateFile( "sample.txt:my_stream",GENERIC_WRITE,FILE_SHARE_WRITE,NULL,OPEN_ALWAYS,0,NULL );
if( hStream == INVALID_HANDLE_VALUE )
printf( "Cannot open sample.txt:my_stream\n" );
else
WriteFile (hStream,"This data is hidden in the stream. Can you Read IT ???", 53, &dwRet, NULL);
}

```

(todo)
