PostHelp GPS Source Code

Posts 1–15 of 18 · Page 1 of 2
Help GPS Source Code
Hi to all coders..i'm looking for the source code for gps/radar... can anyone give me the source code for it?
ADVANCE Thanks Minnas ...
Quote Originally Posted by ShiChiBukAii View Post
Hi to all coders..i'm looking for the source code for gps/radar... can anyone give me the source code for it?
ADVANCE Thanks Minnas ...



Code:
Address.h

#define ADR_RadarGPS              0x******

Base cpp.

pMenu->AddGroup("[ESP/GPS/Info]"   , &Mvisible3                 , opt_Grp);
      if (Mvisible3)
      {
                   pMenu->AddGroup1("D3D ESP"	       , &CH_EspEnemyOnly	      , sD3DESP,3);  
if (CH_EspEnemyOnly)
    {
		           pMenu->AddItem("     Name ESP"	    , &CH_NameEsp		  , opt_OFFON);
                   pMenu->AddItem("     Health ESP"	    , &CH_HealthEsp	      , sHealth,3);
                   pMenu->AddItem("     IP ESP"		    , &CH_IpEsp		      , opt_OFFON);
                   pMenu->AddItem("     Weapon ESP"	    , &CH_WeaponEsp		  , opt_OFFON);
                   pMenu->AddItem("     Distance ESP"   , &CH_DistanceEsp	  , opt_OFFON);
                   
    }

                   pMenu->AddItem("Radar GPS"	   , &CH_RadarGPS         , opt_OFFON); 
      }

Hack.h

int CH_RadarGPS=0;

CPatch  pRadarGPS                ( ADR_RadarGPS          , 2);

 if(CH_RadarGPS==1){
		pRadarGPS.PatchOnce ((void*)"\xEB\x19",2);}
	if(CH_RadarGPS==0){
		pRadarGPS.RestorePatch();}
Credits to : Hotscriper / for the another site.
Thank you idol ... need q nlng addies nito hehe..
Quote Originally Posted by dungzkii View Post
Code:
Address.h

#define ADR_RadarGPS              0x******

Base cpp.

pMenu->AddGroup("[ESP/GPS/Info]"   , &Mvisible3                 , opt_Grp);
      if (Mvisible3)
      {
                   pMenu->AddGroup1("D3D ESP"	       , &CH_EspEnemyOnly	      , sD3DESP,3);  
if (CH_EspEnemyOnly)
    {
		           pMenu->AddItem("     Name ESP"	    , &CH_NameEsp		  , opt_OFFON);
                   pMenu->AddItem("     Health ESP"	    , &CH_HealthEsp	      , sHealth,3);
                   pMenu->AddItem("     IP ESP"		    , &CH_IpEsp		      , opt_OFFON);
                   pMenu->AddItem("     Weapon ESP"	    , &CH_WeaponEsp		  , opt_OFFON);
                   pMenu->AddItem("     Distance ESP"   , &CH_DistanceEsp	  , opt_OFFON);
                   
    }

                   pMenu->AddItem("Radar GPS"	   , &CH_RadarGPS         , opt_OFFON); 
      }

Hack.h

int CH_RadarGPS=0;

CPatch  pRadarGPS                ( ADR_RadarGPS          , 2);

 if(CH_RadarGPS==1){
		pRadarGPS.PatchOnce ((void*)"\xEB\x19",2);}
	if(CH_RadarGPS==0){
		pRadarGPS.RestorePatch();}
Credits to : Hotscriper / for the another site.
Quote Originally Posted by ShiChiBukAii View Post
Thank you idol ... need q nlng addies nito hehe..
lol its for menu not nomenu you dont need addies for this ..
matanong ko lng sir pde bato ilagay sa nomenu base sir?
Quote Originally Posted by dungzkii View Post
Code:
Address.h

#define ADR_RadarGPS              0x******

Base cpp.

pMenu->AddGroup("[ESP/GPS/Info]"   , &Mvisible3                 , opt_Grp);
      if (Mvisible3)
      {
                   pMenu->AddGroup1("D3D ESP"	       , &CH_EspEnemyOnly	      , sD3DESP,3);  
if (CH_EspEnemyOnly)
    {
		           pMenu->AddItem("     Name ESP"	    , &CH_NameEsp		  , opt_OFFON);
                   pMenu->AddItem("     Health ESP"	    , &CH_HealthEsp	      , sHealth,3);
                   pMenu->AddItem("     IP ESP"		    , &CH_IpEsp		      , opt_OFFON);
                   pMenu->AddItem("     Weapon ESP"	    , &CH_WeaponEsp		  , opt_OFFON);
                   pMenu->AddItem("     Distance ESP"   , &CH_DistanceEsp	  , opt_OFFON);
                   
    }

                   pMenu->AddItem("Radar GPS"	   , &CH_RadarGPS         , opt_OFFON); 
      }

Hack.h

int CH_RadarGPS=0;

CPatch  pRadarGPS                ( ADR_RadarGPS          , 2);

 if(CH_RadarGPS==1){
		pRadarGPS.PatchOnce ((void*)"\xEB\x19",2);}
	if(CH_RadarGPS==0){
		pRadarGPS.RestorePatch();}
Credits to : Hotscriper / for the another site.
Quote Originally Posted by ShiChiBukAii View Post
matanong ko lng sir pde bato ilagay sa nomenu base sir?
as i said its for menu not for nomenu so you cannot use this for your nomenubase...
i see..so do you have the source code of nomenu base sir?
Quote Originally Posted by WhiteHat PH View Post

as i said its for menu not for nomenu so you cannot use this for your nomenubase...
Quote Originally Posted by Skaterforeva1 View Post
@ShiChiBukAii its the same code. Just take out the menu part and add a hotkey to it.
Rigth but you need a menu base for it then removed the menu part and add key so it calls nomenugps ...
Quote Originally Posted by WhiteHat PH View Post

Rigth but you need a menu base for it then removed the menu part and add key so it calls nomenugps ...
Or just use this and add it in. I type this up using my menu base as a model, I'm not sure if it will even work I didn't even compile it, but it should. If it doesn't let me know what errors you get.

 
Show
#include <Windows.h>
#include <d3d9.h>
#include <d3dx9.h>

#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")

void Main()
{

}

DWORD * FindDevice(VOID)//Finds the Device on Injection
{
DWORD Base = (DWORD)LoadLibraryW(L"d3d9.dll");

for(DWORD i = 0; i < 0x128000; i++ )
{
if ( (*(BYTE *)(Base+i+0x00))==0xC7
&& (*(BYTE *)(Base+i+0x01))==0x06
&& (*(BYTE *)(Base+i+0x06))==0x89
&& (*(BYTE *)(Base+i+0x07))==0x86
&& (*(BYTE *)(Base+i+0x0C))==0x89
&& (*(BYTE *)(Base+i+0x0D))==0x86 )
return (DWORD *)(Base + i + 2);
}
return NULL;
}

typedef HRESULT(WINAPI *tPresent)(LPDIRECT3DDEVICE9 pDevice, const RECT *a, const RECT *b, HWND c, const RGNDATA *d);
tPresent oPresent;

HRESULT WINAPI Present(LPDIRECT3DDEVICE9 pDevice, const RECT *a, const RECT *b, HWND c, const RGNDATA *d)
{
_asm pushad
Main();
_asm popad;

return oPresent(pDevice, a, b, c, d);
}

void* DetourFunction( BYTE* source, const BYTE* destination, const int length )
{
BYTE* jmp = ( BYTE* ) malloc( length + 5 );
DWORD dwBack;

VirtualProtect( source, length, PAGE_EXECUTE_READWRITE, &dwBack );

memcpy( jmp, source, length );
jmp += length;

jmp[ 0 ] = 0xE9;
*( DWORD* ) ( jmp + 1 ) = ( DWORD ) ( source + length - jmp ) - 5;

source[ 0 ] = 0xE9;
*( DWORD* ) ( source + 1 ) = ( DWORD ) ( destination - source ) - 5;

for( int i = 5; i < length; i++ )
{
source[ i ] = 0x90;
}

VirtualProtect( source, length, dwBack, &dwBack );

return( jmp - length );
}

void PresentHook(void)
{
DWORD* VtablePtr = FindDevice();
DWORD* VTable;
*(DWORD*)&VTable = *(DWORD*)VtablePtr;

if(VtablePtr)
{
oPresent = ( tPresent ) DetourFunction((BYTE*)VTable[17], (BYTE*)&Present,5);
}
}

bool IsGameReady()
{
if(GetModuleHandle(L"WarRock.exe") != NULL
&& GetModuleHandle(L"d3d9.dll") != NULL);
return true;
return false;
}

DWORD WINAPI Hook(LPVOID)
{
while(!IsGameReady())
Sleep(250);
PresentHook();
return 0;
}

BOOL APIENTRY DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if(dwReason == DLL_PROCESS_ATTACH) {
CreateThread(NULL, NULL,(LPTHREAD_START_ROUTINE)Hook, NULL, NULL, NULL);
}
return true;
}
Quote Originally Posted by WhiteHat PH View Post

Rigth but you need a menu base for it then removed the menu part and add key so it calls nomenugps ...
Hell no, it's asm why would he use Menu base and remove menu part to add hotkeys ?

He just take the code and add hotkeys, the GPS code is only this :

Code:
CPatch  pRadarGPS                ( ADR_RadarGPS          , 2);

 if(CH_RadarGPS==1){
		pRadarGPS.PatchOnce ((void*)"\xEB\x19",2);}
	if(CH_RadarGPS==0){
		pRadarGPS.RestorePatch();}
He just got to change patch shits, use a Write Asm or such shit and make the off part restore original bytes and it's done
Quote Originally Posted by n4n033 View Post
Hell no, it's asm why would he use Menu base and remove menu part to add hotkeys ?

He just take the code and add hotkeys, the GPS code is only this :

Code:
CPatch  pRadarGPS                ( ADR_RadarGPS          , 2);

 if(CH_RadarGPS==1){
		pRadarGPS.PatchOnce ((void*)"\xEB\x19",2);}
	if(CH_RadarGPS==0){
		pRadarGPS.RestorePatch();}
He just got to change patch shits, use a Write Asm or such shit and make the off part restore original bytes and it's done
That's what i mean like i code asm artelliry and asm fastreload i use cpatch...
Quote Originally Posted by WhiteHat PH View Post


That's what i mean like i code asm artelliry and asm fastreload i use cpatch...
Ye but isn't needed to use it
Quote Originally Posted by n4n033 View Post
Ye but isn't needed to use it
Thank's also the info from on you ^^
Posts 1–15 of 18 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us