HelpEndereço PTC

Posts 1–15 of 15 · Page 1 of 1
Endereço PTC
Alguem tem o endereço da função PTC?
Code:
0x379B3CF0
, só não se esta correto
Ta errado Tem alguma string q da pra procurar no olly???
Quote Originally Posted by NeoStryker View Post
É no CShell né?
sim, por la mesmo '
Quote Originally Posted by Coder.Anonymous View Post
sim, por la mesmo '
Mas ta errado
Eu pedindo pq to testando chamar PTC pelo AutoIt, sem injetar dll.
Quote Originally Posted by NeoStryker View Post
Mas ta errado
Eu pedindo pq to testando chamar PTC pelo AutoIt, sem injetar dll.
vé esse> 0x379B3E08 , acho que ta certo agora '
Quote Originally Posted by Coder.Anonymous View Post
vé esse> 0x379B3E08 , acho que ta certo agora '
Vlw mas ainda ta errado Pode me falar como eu encontro que eu acho aqui mesmo!
Quote Originally Posted by NeoStryker View Post
Vlw mas ainda ta errado Pode me falar como eu encontro que eu acho aqui mesmo!

#define Consoles 0x379B3E0C

Quote Originally Posted by Coder.Hu3 View Post
#define Consoles 0x379B3E0C

Mas eu consigo usar tipo SkelModelStencil com esse endereço? pq ta tão estranho assim?
Quote Originally Posted by NeoStryker View Post
Mas eu consigo usar tipo SkelModelStencil com esse endereço? pq ta tão estranho assim?
Esse endereo é o console pra vc usar com a classe PConsole


pra usa o chams usa esse endereço

#define LTClientEXE 0x491D30
Quote Originally Posted by Coder.Hu3 View Post
Esse endereo é o console pra vc usar com a classe PConsole


pra usa o chams usa esse endereço

#define LTClientEXE 0x491D30
E qual é o offset?
Classe Pconsole

http://www.mpgh.net/forum/showthread.php?t=889620


Para usar o Chams

#define LTClientEXE 0x491D30

Code:
void CommandConsole(int Variable, const char *TextOn, const char *TextOff, bool& zsFlag){
   typedef void(__cdecl*RunConsoleCommandFn)(const char*);
   RunConsoleCommandFn PTCHACK = (RunConsoleCommandFn)LTClientEXE;

   if(Variable == 1 && zsFlag == false ){
      PTCHACK(TextOn);
      zsFlag = true;
   }
   if(Variable == 0 && zsFlag == true ){
      PTCHACK(TextOff);
      zsFlag = false;
   }
}


CommandConsole(chams,"+SkelModelStencil 1", "+SkelModelStencil 0", nxchams); // Nx Chams
Quote Originally Posted by Coder.Hu3 View Post
#define Consoles 0x379B3E0C

Não existe endereço correto pro Consoles
Quote Originally Posted by Coder.Fail View Post
Não existe endereço correto pro Consoles
O que está errado com meu código? Quanto aperto Insert nem imprime "test".

Code:
#include <windows.h>
#include <stdio.h>
#include <process.h>

void Ptc(const char *cmd)
{

	typedef void(__cdecl*RunConsole)(const char*);
	RunConsole OnOff = (RunConsole)0x491D30;
	OnOff(cmd);
}

void Main(PVOID)
{
	while (1)
	{

		if (GetAsyncKeyState(VK_INSERT) & 1)
		{
			Ptc("+SkelModelStencil 1");
			printf("test\n");
		}

		Sleep(100);
		
	}
}

BOOL WINAPI DllMain(HINSTANCE hDllHandle, DWORD nReason, LPVOID Reserved)
{
	if (nReason == 1)
	{
		AllocConsole();
		freopen("CONOUT$", "w", stdout);
		_beginthread(Main, 0, 0);
	}

	return TRUE;
}
Quote Originally Posted by NeoStryker View Post
O que está errado com meu código? Quanto aperto Insert nem imprime "test".

Code:
#include <windows.h>
#include <stdio.h>
#include <process.h>

void Ptc(const char *cmd)
{

	typedef void(__cdecl*RunConsole)(const char*);
	RunConsole OnOff = (RunConsole)0x491D30;
	OnOff(cmd);
}

void Main(PVOID)
{
	while (1)
	{

		if (GetAsyncKeyState(VK_INSERT) & 1)
		{
			Ptc("+SkelModelStencil 1");
			printf("test\n");
		}

		Sleep(100);
		
	}
}

BOOL WINAPI DllMain(HINSTANCE hDllHandle, DWORD nReason, LPVOID Reserved)
{
	if (nReason == 1)
	{
		AllocConsole();
		freopen("CONOUT$", "w", stdout);
		_beginthread(Main, 0, 0);
	}

	return TRUE;
}


Troque pelo que vou passa agr


Code:
#include <windows.h>
#include <stdio.h>
#include <process.h>

void CommandConsole(int Variable, const char *TextOn, const char *TextOff, bool& zsFlag){
   typedef void(__cdecl*RunConsoleCommandFn)(const char*);
   RunConsoleCommandFn PTCHACK = (RunConsoleCommandFn)LTClientEXE;

   if(Variable == 1 && zsFlag == false ){
      PTCHACK(TextOn);
      zsFlag = true;
   }
   if(Variable == 0 && zsFlag == true ){
      PTCHACK(TextOff);
      zsFlag = false;
   }
}
void Main(PVOID)
{
	while (1)
	{

			if (GetAsyncKeyState(VK_F11)&1) chams= !chams;
		{
			CommandConsole(chams,"+SkelModelStencil 1", "+SkelModelStencil 0", nxchams); // Nx Chams
			printf("test\n");
		}

		Sleep(100);
		
	}
}

BOOL WINAPI DllMain(HINSTANCE hDllHandle, DWORD nReason, LPVOID Reserved)
{
	if (nReason == 1)
	{
		AllocConsole();
		freopen("CONOUT$", "w", stdout);
		_beginthread(Main, 0, 0);
	}

	return TRUE;
}
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us