krot

(NTFS) – Alternate Data Stream

Aug 27th, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment