[Request Tut] Convert AA to Delphi

Discuss about Programming here. You may release your source, post guide and even ask questions!

Moderator: wizme

Post Reply
royalsymbol
Sacrificer
Sacrificer
Posts: 35
Joined: Mon Sep 07, 2009 12:59 am

[Request Tut] Convert AA to Delphi

Post by royalsymbol »

Hello, i have recevently just used Delphi 7, however there are not so much tutorial for Delphi for example making a hack trainer.
The reason why i don't like C++ is because you need to install .NET framework in that particular computer just to use the program,
unlike Delphi.

So i would like to start learning Delphi by making a nudge hack in Delphi 7. Let's say i have some AA script for Nudge Hack, how do i convert it into Delphi 7?


Edit : so some might want the AA script then show us how to convert it to Delphi

Script 1:

Code: Select all

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

003789E1:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [esi+0000035c],1

exit:
jmp returnhere

 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
003789E1:
mov [esi+0000035c],eax
//Alt: db 89 86 5C 03 00 00
Script 2:

Code: Select all

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

00378BF9:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [esi+00000360],1

exit:
jmp returnhere

 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
00378BF9:
mov [esi+00000360],eax
//Alt: db 89 86 60 03 00 00
Also i've attached a CE trainer for Windows Live messenger 14.0.8117.416
You do not have the required permissions to view the files attached to this post.
User avatar
Nerrazzuri
Destiny General
Destiny General
Posts: 1110
Joined: Sun Dec 20, 2009 9:15 pm

Re: [Request Tut] Convert AA to Delphi

Post by Nerrazzuri »

you need .Net Framework because you code in Visual C++/Visual Studio. If you don't want that to happen(in fact, visual C++ has the best GUI as i know) use Embarcadero/Borland C++ Builder. Tho it's off topic, just to let you know.
Selling my ultimate trainer for MapleStory SEA --> View below for screenshot

Click Here for more Information!

Image
royalsymbol
Sacrificer
Sacrificer
Posts: 35
Joined: Mon Sep 07, 2009 12:59 am

Re: [Request Tut] Convert AA to Delphi

Post by royalsymbol »

Well, maybe C++ can do the job, however i have no idea how to insert the AA script into the C++ checkbox, i want to make it so that it looks like the nudge hack trainer that was made by cheat engine

Edit: but wait, i've seen your signature and let me try it out :)
User avatar
Nerrazzuri
Destiny General
Destiny General
Posts: 1110
Joined: Sun Dec 20, 2009 9:15 pm

Re: [Request Tut] Convert AA to Delphi

Post by Nerrazzuri »

Are you sure this codes really works?
I don't see any codecaves on newmem, while originalcode is not jumped.

Edit : Okay, I see your code should be like this

Code: Select all

[ENABLE]
alloc(originalcode, 256)
label(returnhere)

00378BF9:
jmp originalcode
nop
returnhere:

originalcode:
mov [esi+00000360],1
je returnhere


[DISABLE]
00378BF9:
mov [esi+00000360],eax
dealloc(originalcode)
I've shorten your codes depending on my knowledge, don't know if works. Let me know, I'll convert this to C++ if it works.
Selling my ultimate trainer for MapleStory SEA --> View below for screenshot

Click Here for more Information!

Image
royalsymbol
Sacrificer
Sacrificer
Posts: 35
Joined: Mon Sep 07, 2009 12:59 am

Re: [Request Tut] Convert AA to Delphi

Post by royalsymbol »

Yes it was something like that but now i've went to your Tutorial for DLL Trainer, the link for Visual Studio 2010 With Activation Key was down, sharecash needs some survey to download ==

Is it possible to create another tutorial for Visual C++ express 2010? i can design with forms but the source code is different

i have converted the hack to bytes(new), and also want to activate this 3 hacks in just 1 checkbox

Code: Select all

VOID NudgeHack(__in BOOL bEnable)
{
   static BYTE normalbytes[] = {0x89, 0x86, 0x5C, 0x03, 0x00, 0x00}; //DISABLED bytes of the hack
   static BYTE hackonbytes[] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90}; //ENABLED bytes of the hack
   static DWORD HackAddr = 0x002589E1; //Address of the hack

   static BYTE normalbytes2[] = {0x89, 0x86, 0x60, 0x03, 0x00, 0x00}; //DISABLED bytes of the hack
   static BYTE hackonbytes2[] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90}; //ENABLED bytes of the hack
   static DWORD HackAddr2 = 0x00258DF9; //Address of the hack

   static BYTE normalbytes3[] = {0xC7, 0x00, 0x01, 0x00, 0x00, 0x00}; //DISABLED bytes of the hack
   static BYTE hackonbytes3[] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90}; //ENABLED bytes of the hack
   static DWORD HackAddr3 = 0x00258B72; //Address of the hack

   if(bEnable)
      WriteAddress((LPVOID)HackAddr, hackonbytes, 6); //Number of ENABLED bytes...
   else
      WriteAddress((LPVOID)HackAddr, normalbytes, 6); //Number of DISABLED bytes...

      if(bEnable)
      WriteAddress((LPVOID)HackAddr2, hackonbytes2, 6); //Number of ENABLED bytes...
   else
      WriteAddress((LPVOID)HackAddr2, normalbytes2, 6); //Number of DISABLED bytes...

	     if(bEnable)
      WriteAddress((LPVOID)HackAddr3, hackonbytes3, 6); //Number of ENABLED bytes...
   else
      WriteAddress((LPVOID)HackAddr3, normalbytes3, 6); //Number of DISABLED bytes...
}
here is the address i've got for nudgehack

Code: Select all

002589e1:
(89 86 5c 03 00 00) ff 15 f0 13 0f 00
00258DF9:
(89 86 60 03 00 00) E9 E1 01 00 00
00258B72:
(C7 00 01 00 00 00) 68 90 01 00 00
those that are in brackets are the 6 bytes that needs to be NOP-ed and the non-brackets are just extra AOB to find the correct address(static address)
i tested it and it works for now

But can't code it due to that I'm currently using Visual C++ Express 2010 and not sure if if my Trainer.cpp is correct for combining 3 hacks into 1 checkbox.

those 3 hacks that I mention are for the hack to work properly so that when you pause nudging for awhile, you can still nudge whenever you want

the hack address is for Windows Live Messenger (Build 14.0.8117.416)
to check the version, open up Windows Live Messenger, top right hand (Show Menu) -> Help -> About Messenger
User avatar
Nerrazzuri
Destiny General
Destiny General
Posts: 1110
Joined: Sun Dec 20, 2009 9:15 pm

Re: [Request Tut] Convert AA to Delphi

Post by Nerrazzuri »

royalsymbol wrote:Yes it was something like that but now i've went to your Tutorial for DLL Trainer, the link for Visual Studio 2010 With Activation Key was down, sharecash needs some survey to download ==

Is it possible to create another tutorial for Visual C++ express 2010? i can design with forms but the source code is different

i have converted the hack to bytes(new), and also want to activate this 3 hacks in just 1 checkbox

Code: Select all

VOID NudgeHack(__in BOOL bEnable)
{
   static BYTE normalbytes[] = {0x89, 0x86, 0x5C, 0x03, 0x00, 0x00}; //DISABLED bytes of the hack
   static BYTE hackonbytes[] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90}; //ENABLED bytes of the hack
   static DWORD HackAddr = 0x002589E1; //Address of the hack

   static BYTE normalbytes2[] = {0x89, 0x86, 0x60, 0x03, 0x00, 0x00}; //DISABLED bytes of the hack
   static BYTE hackonbytes2[] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90}; //ENABLED bytes of the hack
   static DWORD HackAddr2 = 0x00258DF9; //Address of the hack

   static BYTE normalbytes3[] = {0xC7, 0x00, 0x01, 0x00, 0x00, 0x00}; //DISABLED bytes of the hack
   static BYTE hackonbytes3[] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90}; //ENABLED bytes of the hack
   static DWORD HackAddr3 = 0x00258B72; //Address of the hack

   if(bEnable)
      WriteAddress((LPVOID)HackAddr, hackonbytes, 6); //Number of ENABLED bytes...
   else
      WriteAddress((LPVOID)HackAddr, normalbytes, 6); //Number of DISABLED bytes...

      if(bEnable)
      WriteAddress((LPVOID)HackAddr2, hackonbytes2, 6); //Number of ENABLED bytes...
   else
      WriteAddress((LPVOID)HackAddr2, normalbytes2, 6); //Number of DISABLED bytes...

	     if(bEnable)
      WriteAddress((LPVOID)HackAddr3, hackonbytes3, 6); //Number of ENABLED bytes...
   else
      WriteAddress((LPVOID)HackAddr3, normalbytes3, 6); //Number of DISABLED bytes...
}
here is the address i've got for nudgehack

Code: Select all

002589e1:
(89 86 5c 03 00 00) ff 15 f0 13 0f 00
00258DF9:
(89 86 60 03 00 00) E9 E1 01 00 00
00258B72:
(C7 00 01 00 00 00) 68 90 01 00 00
those that are in brackets are the 6 bytes that needs to be NOP-ed and the non-brackets are just extra AOB to find the correct address(static address)
i tested it and it works for now

But can't code it due to that I'm currently using Visual C++ Express 2010 and not sure if if my Trainer.cpp is correct for combining 3 hacks into 1 checkbox.

those 3 hacks that I mention are for the hack to work properly so that when you pause nudging for awhile, you can still nudge whenever you want

the hack address is for Windows Live Messenger (Build 14.0.8117.416)
to check the version, open up Windows Live Messenger, top right hand (Show Menu) -> Help -> About Messenger
Add me in MSN I can teach you how to use windows form.
nerrazzuri2002@hotmail.com
Selling my ultimate trainer for MapleStory SEA --> View below for screenshot

Click Here for more Information!

Image
royalsymbol
Sacrificer
Sacrificer
Posts: 35
Joined: Mon Sep 07, 2009 12:59 am

Re: [Request Tut] Convert AA to Delphi

Post by royalsymbol »

Post Reply