|
You last visited: Today at 05:17
Advertisement
[QUESTION] HP Memory Address
Discussion on [QUESTION] HP Memory Address within the CO2 Programming forum part of the Conquer Online 2 category.
05/16/2009, 16:21
|
#16
|
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
|
Maybe this thread is dead now... im not sure xD... anyways, this is how i get the current HP using the function addresses from high6.
PHP Code:
uint32_t CCO2Functions::execute(void* opcode, uint32_t size)
{
void* remoteMem = VirtualAllocEx(hProcess, 0, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
if (remoteMem == NULL) { return 0; }
if (!WriteProcessMemory(hProcess, remoteMem, opcode, size, 0)) {
VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE);
return 0;
}
HANDLE hThread = CreateRemoteThread(hProcess, 0, 65536, (LPTHREAD_START_ROUTINE)remoteMem, 0, 0, 0);
if (!hThread) {
VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE);
return 0;
}
while (WaitForSingleObject(hThread, 1000) != WAIT_OBJECT_0) {}
uint32_t retval;
GetExitCodeThread(hThread, (DWORD*)&retval);
VirtualFreeEx(hProcess, remoteMem, 0, MEM_RELEASE);
CloseHandle(hThread);
return retval;
}
CCO2Functions::CCO2Functions(uint32_t pid)
{
hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);
}
CCO2Functions::~CCO2Functions()
{
if (hProcess != INVALID_HANDLE_VALUE) {
CloseHandle(hProcess);
}
}
uint32_t CCO2Functions::getHP()
{
char opcode[] =
"\x57" // PUSH EDI
"\x56" // PUSH ESI
"\x6A\x01" // PUSH 0x01
"\xB9\xB8\xAB\x5D\x00" // MOV ECX, 0x005DABB8
"\xB8\x18\xA5\x4D\x00" // MOV EAX, 0x004DA518
"\xFF\xD0" // CALL EAX
"\x5E" // POP ESI
"\x5F" // POP EDI
"\xC3"; // RET
return execute((void*)opcode, sizeof(opcode));
}
|
|
|
05/17/2009, 07:01
|
#17
|
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
|
@clinton - Does that make the HP static?... If so, could you convert it to AutoIt script please  .
|
|
|
05/17/2009, 15:58
|
#18
|
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
|
Quote:
Originally Posted by swords
@clinton - Does that make the HP static?... If so, could you convert it to AutoIt script please  .
|
Yeap it does  ... and converting to AutoIt... U wanna do it?? xD, enough information is available now.
THis is the only extra part u would have to translate into AutoIt using DllCall() function
PHP Code:
while (WaitForSingleObject(hThread, 1000) != WAIT_OBJECT_0) {}
uint32_t retval;
GetExitCodeThread(hThread, (DWORD*)&retval);
That there waits until the function ends and gets the return value from it that was in EAX (ur hp value).
I'll convert it to AutoIt later, just feeling lazy atm
|
|
|
05/17/2009, 18:09
|
#19
|
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
|
Quote:
Originally Posted by clintonselke
Yeap it does  ... and converting to AutoIt... U wanna do it?? xD, enough information is available now.
THis is the only extra part u would have to translate into AutoIt using DllCall() function
PHP Code:
while (WaitForSingleObject(hThread, 1000) != WAIT_OBJECT_0) {}
uint32_t retval;
GetExitCodeThread(hThread, (DWORD*)&retval);
That there waits until the function ends and gets the return value from it that was in EAX (ur hp value).
I'll convert it to AutoIt later, just feeling lazy atm 
|
Akaka, I don't understand C++, no chance I could convert it lol xD.
Thanks for doing this for me  . I actually have an auto-potter that can pot at the exact HP you desire, using NO memory work at all, just algorithms... With this, I can make a background potter by sending F keys through ControlSend  .
|
|
|
 |
|
Similar Threads
|
about memory address
09/13/2010 - CO2 Programming - 4 Replies
hello peeps
i am trying to make a program that shows how much gold i have in my inventory without having to open it up all the time
i have been searching on how to do this in vb6 and vb.net but i cant find anything that is what i am looking for so i came here to see if there was anyone that could point me in the right way on how to do this
|
[VB]Memory Address
06/30/2009 - .NET Languages - 5 Replies
Weiß jemande wie ich eine Memory Addresse in Visual Basic einbauen kann ? :)
Ahja habe VB08 :)
Liebe Grüße,
AngelAndi
|
[Question] Memory address of VP?
06/06/2008 - Conquer Online 2 - 24 Replies
Anyone know the memory address for Virtue Points? Or is this stored on the server? How is it that people get it on their tools...
|
MP address in memory
05/06/2007 - Lineage 2 - 0 Replies
I want to make bot, I found HP address in memory, its 09DDD190 but I still can't find MP address ? Can anybody help me ?
And srry because of my english, it is bad :rolleyes:
|
All times are GMT +1. The time now is 05:17.
|
|