krot

(NTFS) – Alternate Data Stream

Aug 27th, 2016
38
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char *argv[]){
  4.     FILE* fFile = fopen("C:\\test.exe:test.txt", "wb");
  5.     if(fFile == NULL){
  6.         printf("Unable to open file.\n");
  7.     }else{
  8.         fprintf(fFile, "Looks like ADS works!");
  9.         fclose(fFile);
  10.  
  11.         printf("Content should be written to the file.\n");
  12.         return 1;
  13.     }
  14. }
RAW Paste Data