TGViewer
DarkBit DarkBit @darkbitx · 1.65K subscribers
Post #85 1.93K
DarkBit 🎯 InjectionOps - قسمت دوم 📄چکیده قسمت دوم: با نحوه ساخت یک DLL سفارشی با زبان C آشنا شدیم. سپس یک برنامه مخصوص اینجکشن طراحی و پیاده‌سازی کردیم. در نهایت با استفاده از آن برنامه، این DLL را در Local Process اینجکت کردیم و اجرای آن را بررسی کردیم. 👁‍🗨…
کدهایی که استفاده شده:
// dll source code
#include <stdio.h>
#include <windows.h>
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
{
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
{
int btn = MessageBox(NULL, "This is a simple messagebox", "Bad DLL", MB_OKCANCEL | MB_ICONINFORMATION);
if (btn == IDCANCEL){
MessageBox(NULL, "Cancel clicked", "Info", MB_OK );
}else{
MessageBox(NULL, "OK clicked", "Info", MB_OK );
}

break;
}
case DLL_PROCESS_DETACH:
{
break;
}
case DLL_THREAD_ATTACH:
{
break;
}
case DLL_THREAD_DETACH:
{
break;
}
}

return TRUE;
}
----------------------------------------------------------------------------------------------------
// injector source code
#include <stdio.h>
#include <Windows.h>

int main(int argc, char* argv[]){

if(argc != 2){
printf("Usage: %s <path>\n",argv[0]);
return -1;
}

printf("[*] Injecting %s ...\n",argv[1]);

if(LoadLibraryA(argv[1]) == NULL){
return -1;
}
printf("[+] DLL injected successfully\n");

return 0;
}
  • ❤‍🔥 12
  • ❤ 3
More from @darkbitx
  1. Oct 17, 2026📌 فایل‌‌های قسمت پانزدهم Password: @DarkBitx
  2. Oct 17, 2026&rlm;🎯 InjectionOps2 | قسمت پانزدهم 🚫 Anti-Debugging در این قسمت با مفهوم Anti-Debugging…
  3. Oct 10, 2026📌 فایل‌‌های قسمت دوازدهم Password: @DarkBitx
  4. Oct 10, 2026&rlm;🎯 InjectionOps2 | قسمت دوازدهم 🦠 IAT Hiding | API Hashing در این قسمت با مفهوم API…
  5. Oct 2, 2026📌 فایل‌‌های قسمت یازدهم Password: @DarkBitx
  6. Oct 2, 2026&rlm;🎯 InjectionOps2 | قسمت یازدهم 🦠 IAT Hiding | Custom GetModuleHandle در این قسمت با…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →