Disini Saya akan memberikan tutorial Injektor CMD,,Sekarang Saya akan Memberikan Tutorial Ya langsung aja ke proses nya ok
3. Kemudian kalian masukan SC berikut ini
SC=
/*
Name: BladeInjek
Copyright: BladeInjek
Author: BladeInjek
Date: 15/11/10 20:52
Description: Injector with High Speed Injecting
*/
#include "windows.h"
#include <tlhelp32.h>
//jabarkan beberapa fungsi
BOOL SuntixDLL(LPSTR lpTargetName);
DWORD GetPID(LPSTR ProcName);
#pragma comment (linker,"/entry:WinMain filealign:0x200")
int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
printf("<=>Blade Injek Compiled in GCC by Blade Shark\n<=>SC By RCD\nSpecial for Nyitnyiters\n\n<=>BladeInjek Lebih ringan dari injek yang lain karenan berbentuk dos atu cmd dan lebih cepat.!\n\n<=>Copyright 2010 By Blade Shark"); // \n untuk membuat baris baru
SuntixDLL("PINBALL.EXE"); // berikan suntikan ke games yang kalian inginkan :D
ExitProcess(0); // kalau sudah selesai, tutup injector
return 0; // DONE !
}
//gunakan tlhelp api untuk mendapatkan nama target kita, ingat ! besar kecil dibedakan !
DWORD GetPID(LPSTR ProcName)
{
PROCESSENTRY32 pe32;
HANDLE hProcessSnap = INVALID_HANDLE_VALUE;
//Tangkap beberapa proses yang sedang running
hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
if( hProcessSnap == INVALID_HANDLE_VALUE )return (0);
pe32.dwSize = sizeof(PROCESSENTRY32);
if( Process32First(hProcessSnap, &pe32) == 0 ) {
CloseHandle( hProcessSnap );
return (0);
}
do {//Loop untuk mencari apakah process yang akan diinject telah ditemukan ?
if(lstrcmp(ProcName,pe32.szExeFile)== 0)
return pe32.th32ProcessID;
}while(Process32Next(hProcessSnap,&pe32) );
CloseHandle( hProcessSnap );
SetLastError(0);
return (0);
}
BOOL SuntixDLL(LPSTR lpTargetName)
{
ShellExecute(NULL, "open", "http://bladeshark.blogspot.com",NULL,NULL,SW_MINIMIZE); //Numpang mejeng di pejwan gan kwkwkwkwkw
HINSTANCE hKernel;
HANDLE hProcess, hThread;
DWORD pLoadLibraryA;
DWORD dwAllocAddress = 0, dwTargetProcId = 0,
dwBuflen = 0, dwNewThreadId = 0, dwWritten = 0;
//alokasikan BUFFER
LPSTR lpModulePath = (LPSTR)GlobalAlloc(GPTR,MAX_PATH);
//mari kita check apakah dll ada di direktori yang sama ?
GetModuleFileNameA(NULL,lpModulePath,MAX_PATH);
lpModulePath[lstrlen(lpModulePath) - 4] = 0;
lstrcat(lpModulePath, ".dll"); // NAMA FILE DLL HARUS SAMA DENGAN INJECTOR
// CONTOH INJECTOR DENGAN NAMA "BladeInjek.EXE" MAKA DLL HARUS BERNAMA "BladeInjek.DLL"
WIN32_FIND_DATA WFD;
if(FindFirstFileA(lpModulePath,&WFD) == INVALID_HANDLE_VALUE) {
MessageBox(NULL,"DLL not found ! ",0,0);
return (1);
}
hKernel = GetModuleHandle("kernel32.dll");
if(hKernel == NULL)
hKernel = LoadLibrary("kernel32.dll");
if(hKernel == NULL) {
MessageBox(NULL,"Looks like you have no kernel ? kwowkowkowkow LOL",0,0);
return (1);
}
pLoadLibraryA = (DWORD)GetProcAddress(hKernel,"LoadLibraryA");
do {
dwTargetProcId = GetPID(lpTargetName);
Sleep(20);
}while(!dwTargetProcId);
hProcess = OpenProcess(PROCESS_ALL_ACCESS,FALSE,dwTargetProcId);
if( GetLastError() != NO_ERROR ) {
MessageBox(NULL,"Process could not be opened!",0,0);
return 1;
}
dwAllocAddress = (DWORD)VirtualAllocEx(hProcess,0,lstrlen(lpModulePath),MEM_COMMIT,PAGE_READWRITE);
if( GetLastError()!= NO_ERROR ) {
CloseHandle(hProcess);
MessageBox(NULL,"failed to allocate memory",0,0);
return 1;
}
// MessageBox(NULL,"Memory Allocated Succefully",0,0);
WriteProcessMemory(hProcess,(LPVOID)dwAllocAddress,lpModulePath,lstrlen(lpModulePath),&dwWritten);
if( GetLastError() != NO_ERROR ) {
CloseHandle(hProcess);
MessageBox(NULL,"failed to run WriteMemory !",0,0);
return 1;
}
hThread = CreateRemoteThread(hProcess,0,0,(LPTHREAD_START_ROUTINE)
pLoadLibraryA,(LPVOID)dwAllocAddress,0,&dwNewThreadId);
if( GetLastError() != NO_ERROR ) {
CloseHandle(hProcess);
MessageBox(NULL,"Failed to create a new thread !",0,0);
return 1;
}
CloseHandle(hThread);
CloseHandle(hProcess);
GlobalFree(lpModulePath);
return (0);
}
/*
Harap kacang jangan lupa kulit, kalau berkenan berikan credit injector kepada saya :D, atau donasi cendol kwkwkwkwwk
Jangan lupa edit version info, kalau perlu tambahkan Icon agar injector tidak terkesan tanggung :p
*/
3. kemudain ada berkan info sedikit pada Injektor nya bisa di lihat di gambar di bawah ini :