A little Help

Posts 1–5 of 5 · Page 1 of 1
A little Help
#include <windows.h>



void __cdecl PushToConsole(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}


DWORD WINAPI jacob(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(100);
}

bool recoil = true;





for(; {

if (recoil){
PushToConsole("ImageRecoilGauge1");
}




}
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL,jacob, NULL, NULL, NULL);
}
return TRUE;
}



Could someone tell me or help me out it says its detected just help me out Thank you (: everyone that HElps
#include <windows.h>
#include <iostream>


void __cdecl crossfirepush(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}


DWORD WINAPI jacob(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(110);
}

bool testrec = true;





for(; ; ){
__asm pushad;
__asm popad;

if(GetAsyncKeyState(VK_NUMPAD1)&1) {
testrec = !testrec;
}


if (testrec) {
crossfirepush("ImageRecoilGauge 1");
}
else {
crossfirepush("ImageRecoilGauge 0");
}



}
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "press ok", "Injected", 0);
CreateThread(NULL, NULL,jacob, NULL, NULL, NULL);
}
return TRUE;
}

Test this code
and press 1 in game but recoil is detecktet with pushtoconsole
i have error by it when i do in C++ ( error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\no recoil by (shefoalaao)\Debug\no recoil by (shefoalaao).exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\no recoil by (shefoalaao)\no recoil by (shefoalaao)\Debug\BuildLog.htm" ) !!
Quote Originally Posted by jacob1421 View Post
#include <windows.h>



void __cdecl PushToConsole(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}


DWORD WINAPI jacob(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(100);
}

bool recoil = true;





for(; {

if (recoil){
PushToConsole("ImageRecoilGauge1");
}




}
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL,jacob, NULL, NULL, NULL);
}
return TRUE;
}



Could someone tell me or help me out it says its detected just help me out Thank you (: everyone that HElps
Why make a hoykey if your making it auto on?
I always get rid out the GetAsyncKeyState commands if I can.
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us