/*
Name: RCD Base
Copyright: RCD
Author: RCD
Date: 22/11/10 15:37
Description: SC Dasar untuk lebih mudah menggunakan RCD Logger
===============================================================
*/
#define WIN32_LEAN_AND_MEAN
#include "addys.h"
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
LPTSTR Ewes = "PointBlank.i3Exec";
void Patch(void *adr, void *ptr, int size) {
DWORD OldProtection;
VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection);
memcpy(adr,ptr,size);
VirtualProtect(adr,size, OldProtection, &OldProtection);
}
DWORD WINAPI MemPacth(LPVOID param)
{
while (1) { // Jika nilai 1 atau True jalankan fungsi dibawah ini !
// Baret Hack
if (GetAsyncKeyState(VK_NUMPAD1)&1) {
DWORD dwBase = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Ewes);
ReadProcessMemory(GetCurrentProcess(), (LPCVOID) (dwPB + PLAYER / 2), &dwBase, sizeof(dwBase), NULL);
Patch((void *)(dwBase + BARET),(void*)(PBYTE)"\x7C\x7D\xBE\x41",4);
MessageBeep(0);
}
if (GetAsyncKeyState(VK_NUMPAD2)&1) {
DWORD dwBase = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Ewes);
ReadProcessMemory(GetCurrentProcess(), (LPCVOID) (dwPB + PLAYER / 2), &dwBase, sizeof(dwBase), NULL);
Patch((void *)(dwBase + BARET),(void*)(PBYTE)"\x7B\x7D\xBE\x41",4);
MessageBeep(0);
}
if (GetAsyncKeyState(VK_NUMPAD3)&1) {
DWORD dwBase = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Ewes);
ReadProcessMemory(GetCurrentProcess(), (LPCVOID) (dwPB + PLAYER / 2), &dwBase, sizeof(dwBase), NULL);
Patch((void *)(dwBase + BARET),(void*)(PBYTE)"\x79\x7D\xBE\x41",4);
MessageBeep(0);
}
if (GetAsyncKeyState(VK_NUMPAD4)&1) {
DWORD dwBase = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Ewes);
ReadProcessMemory(GetCurrentProcess(), (LPCVOID) (dwPB + PLAYER / 2), &dwBase, sizeof(dwBase), NULL);
Patch((void *)(dwBase + BARET),(void*)(PBYTE)"\x7A\x7D\xBE\x41",4);
MessageBeep(0);
}
if (GetAsyncKeyState(VK_NUMPAD5)&1) {
DWORD dwBase = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Ewes);
ReadProcessMemory(GetCurrentProcess(), (LPCVOID) (dwPB + PLAYER / 2), &dwBase, sizeof(dwBase), NULL);
Patch((void *)(dwBase + BARET),(void*)(PBYTE)"\x7D\x7D\xBE\x41",4);
MessageBeep(0);
}
if (GetAsyncKeyState(VK_NUMPAD6)&1) {
DWORD dwBase = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Ewes);
ReadProcessMemory(GetCurrentProcess(), (LPCVOID) (dwPB + PLAYER / 2), &dwBase, sizeof(dwBase), NULL);
Patch((void *)(dwBase + BARET),(void*)(PBYTE)"\x7E\x7D\xBE\x41",4);
MessageBeep(0);
}
if (GetAsyncKeyState(VK_END)&1) {
DWORD dwBase = 0;
DWORD dwPB = (DWORD)GetModuleHandleA(Ewes);
ReadProcessMemory(GetCurrentProcess(), (LPCVOID) (dwPB + PLAYER / 2), &dwBase, sizeof(dwBase), NULL);
Patch((void *)(dwBase + BARET),(void*)(PBYTE)"\x00\x00\x00\x00",4);
MessageBeep(0);
}
}
Sleep(5); // Berikan jeda
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hDll);
if(dwReason == DLL_PROCESS_ATTACH){
MessageBox(0,"Hotkeys :\n[NUMPAD1] Baret SG\n[NUMPAD2]
Baret AWP\n[NUMPAD3] Baret Asault\n[NUMPAD4] Baret SMG\n[NUMPAD5] Baret
Pistol\n[NUMPAD6] Baret GM\n\nCreated :hoam hoam","us-net.org",
MB_TOPMOST);//notice selalu di atas
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MemPacth, 0, 0, 0);
MessageBox(0,"Tolong jangan di ambil Dll GW ^_^","_pirhan_
", MB_TOPMOST);//notice selalu di atas
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MemPacth, 0, 0, 0);
MessageBox(0,"ngarep punyah suhu kyak om hero,benzix and
all member us-net ..","ngarep mode on", MB_TOPMOST);//notice selalu di
atas
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MemPacth, 0, 0, 0);
system("http://singajaya.forumid.net");//open url
//kuncinama
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName, "_x-drs_.dll") <= 0) {//nama dll asli
// tampilkan pesan, kalo dll nya sdh bukan asli / sudah di rename
MessageBox(0, "aduh kk kok direname sih kk ", "_pirhan_", 0);
ExitProcess(0);//PB g jalan
}
}
else if(dwReason == DLL_PROCESS_DETACH)
{
}
return TRUE;
}