
Originally Posted by
dani883345
Hi ppl,I was learning a little in MPGH topics(cuz I'm begginer),& I maded a code to do a .dll,is it okay,or I must rapair some thing?? The functions are: no grenade damage(F9) & no weapon weight(F10)
Here is the code:
Code:
#include <windows.h>
#include <iostream>
using namespace std;
void __cdecl PushToConsole(char* szVal ) {
DWORD pWeaponsPtr = *(DWORD*)(hShell + 0x90A4B8);
if (pWeaponsPtr !=NULL)
{
for (int i = 0; i < 512; i++)
{
DWORD pWeapon = *(DWORD*)(pWeaponsPtr + i * 4);
if (pWeapon)
continue;
*(float*)(pWeapon + 0x754) = 0.0f;
*(float*)(pWeapon + 0x1F88) = 0.0f;
}
}
}
DWORD WINAPI Main(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(100); //100ms
}
bool No grenade damage = true;
bool No weapon weight = true;
for(;;) {
__asm pushad;
if(GetAsyncKeyState(VK_F9)&1) {
No grenade damage = !No grenade damage;
}
if(GetAsyncKeyState(VK_F10)&1) {
No weapon weight = !No weapon weight;
}
if (No grenade damage) {
PushToConsole("No grenade damage 1");
}
else {
PushToConsole("No grenade damage 0");
}
if (No weapon weight) {
PushToConsole("No weapon weight 1");
}
else {
PushToConsole("No weapon weight 0");
}
Sleep(100);
__asm popad;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Maked by dani883345,enjoy it! ", "Successfully Injected", 0);
system("start https://www.mpgh.net");
CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
}
return TRUE;
}
If you help me,I'll make a new hack for you...xD
OK from where I can see this the code that my friend delitax aka leagonderhacker released publicly but Ur not eaven hacking my friend try this it may be wrong because I aint good at PTC methode but try this
Code:
#include <windows.h>
#include <iostream>
using namespace std;
void __cdecl RPD(char* szVal )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LT = ( DWORD* )( (dwCShell + 0x2ECF5C) );
void* CON = ( void* )*( DWORD* )( *LT + 0x1F8 );
_asm
{
push szVal;
call CON;
add esp, 4;
}
}
}
for(;;) {
bool No grenade damage = true;
bool No weapon weight = true;
__asm pushad;
if(GetAsyncKeyState(VK_F9)&1) {
No grenade damage = !No grenade damage;
}
if(GetAsyncKeyState(VK_F10)&1) {
No weapon weight = !No weapon weight;
}
if (No grenade damage) {
PushToConsole("No grenade damage 1");
}
else {
PushToConsole("No grenade damage 0");
}
if (No weapon weight) {
PushToConsole("No weapon weight 1");
}
else {
PushToConsole("No weapon weight 0");
}
Sleep(100);
if (Noweaponweight == 1 )
DWORD pWeaponsPtr = *(DWORD*)(hShell + 0x90A4B8);
if (pWeaponsPtr !=NULL)
{
for (int i = 0; i < 512; i++)
{
DWORD pWeapon = *(DWORD*)(pWeaponsPtr + i * 4);
if (pWeapon)
continue;
*(float*)(pWeapon + 0x754) = 0.0f;
*(float*)(pWeapon + 0x1F88) = 0.0f;
}
}
}
__asm popad;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Maked by dani883345,enjoy it! ", "Successfully Injected", 0);
system("start https://www.mpgh.net");
CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
}
return TRUE;
}