Alternate Data Stream C++
 

 

 

Creating ADS (AlternateData Stream) in C++.

I am adding here a nice method of creating and implementing ADS into the system.
This is similar to creating a file, with the introduction of the file path :ads

Video:

 

-----------------------------------------------------------------

The whole function is built in header WinAPI.h WinAPI.h



Calling from main:


#include "Convert.h" //hhttps://www.netbot.sk/en/14-blog-headers/86-convert-h-en
#include "WinApi.h" //hhttps://www.netbot.sk/en/14-blog-headers/44-winapi-en
int _cdecl main (void) { ::Diall_WinApi::WinApi::GetInstance()->SystemIntegrity(::Diall_WinApi::Privilege::ENABLE);
::Diall_WinApi::WinApi::GetInstance()->CreateFileW("c:\\diallix1.txt","HELLO FILE", 10); ::Diall_WinApi::WinApi::GetInstance()->CreateFileW("c:\\diallix1.txt:MALWARE", "HELLO ADS", 10);
return 0; }