Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


delphi dll trainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Sat Feb 02, 2008 9:39 am    Post subject: delphi dll trainer Reply with quote

Hello,

Hey, I've read the thread by ups2000ups and tried it out with the dll and it worked great.
Source
Code:
library debugger;

uses
  SysUtils,
  Classes;

{$R *.res}
procedure Random()stdcall;assembler;
asm
mov byte ptr [$005CF4C1],$74
end;

exports
  Random;

begin
end.


$005CF4C1 is just a random address with "jne xxx..". in GMS v0.50.
So I injected the dll into MapleStory (ggles) and executed the function "Random" and it succesfully changed "jne" to "je". Smile

So I was wondering if it would be possible to inject the dll into MapleStory without calling a function.
Then calling the function aka procedure from a application that it executes it in MapleStory.
Or do I have to make a dll injector and inject the dll with executing the proedure?


thanks in advance Smile
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sat Feb 02, 2008 10:01 am    Post subject: Reply with quote

dllmain?
Back to top
View user's profile Send private message MSN Messenger
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sat Feb 02, 2008 10:03 am    Post subject: Reply with quote

i dont get what ur saying... do u want it to inject to maplestory?? if so..
rename it to PCOMDebug.dll and put it into the maplestory folder
it will inject itself

_________________
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sat Feb 02, 2008 10:09 am    Post subject: Reply with quote

lurc wrote:
i dont get what ur saying... do u want it to inject to maplestory?? if so..
rename it to PCOMDebug.dll and put it into the maplestory folder
it will inject itself


He wants the function to run when it's injected.
Back to top
View user's profile Send private message MSN Messenger
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Sat Feb 02, 2008 10:14 am    Post subject: Reply with quote

Ye I want to run the/a function when it's already injected.

Thanks noz, I'm going to try it Smile
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sat Feb 02, 2008 10:23 am    Post subject: Reply with quote

reakw0n i dont think you could do that because you execute on the attach. idk though.

edit:

You need to use a timer.

_________________
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Feb 02, 2008 11:10 am    Post subject: Reply with quote

CreateThread(); ?

use C, noz's the leetness Smile
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Sat Feb 02, 2008 11:14 am    Post subject: Reply with quote

Anyhow, I knew that you will say "use c" Rolling Eyes
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Feb 02, 2008 11:20 am    Post subject: Reply with quote

rEakW0n wrote:
Anyhow, I knew that you will say "use c" Rolling Eyes


C is the best when it comes to R/WPM / Dll injection and all these crap, trust me, noz's the leetness
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sat Feb 02, 2008 11:21 am    Post subject: Reply with quote

rEakW0n wrote:
Anyhow, I knew that you will say "use c" Rolling Eyes


Code:
#include "windows.h"

void Write();

BOOL APIENTRY DllMain( HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
{
   switch (ul_reason_for_call)
   {
      case DLL_PROCESS_ATTACH:
         Write();
         break;

      case DLL_THREAD_ATTACH:
      case DLL_THREAD_DETACH:
      case DLL_PROCESS_DETACH:
         break;
   }

   return TRUE;
}

void Write()
{
   _asm
   {
      mov byte ptr ds:[0x005CF4C1],0x74
   }
}
Back to top
View user's profile Send private message MSN Messenger
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Sat Feb 02, 2008 11:31 am    Post subject: Reply with quote

Rot1 wrote:
rEakW0n wrote:
Anyhow, I knew that you will say "use c" Rolling Eyes


C is the best when it comes to R/WPM / Dll injection and all these crap, trust me, noz's the leetness


Yes, you already told me that like 10 times.

Ontopic:
So the dll in C and the application in delphi. But how to call it then?
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sat Feb 02, 2008 12:15 pm    Post subject: Reply with quote

rEakW0n wrote:
Rot1 wrote:
rEakW0n wrote:
Anyhow, I knew that you will say "use c" Rolling Eyes


C is the best when it comes to R/WPM / Dll injection and all these crap, trust me, noz's the leetness


Yes, you already told me that like 10 times.

Ontopic:
So the dll in C and the application in delphi. But how to call it then?


As soon as you inject the DLL, DLLMain is called. its like the int main(); function in a console application.
Back to top
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sat Feb 02, 2008 12:25 pm    Post subject: Reply with quote

reakw0n did you read what i said?

in the main function create a timer or set a hotkey. use the keyboard sync with timer or WM_HOTKEY message with the hotkey.

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Feb 02, 2008 2:14 pm    Post subject: Reply with quote

From what I read it as, you want to have the DLL execute a function during runtime when a stand alone exe is performing an action, more or less so communicating with the DLL while its inside the process.

You can do this a few different ways:

- NamedPipes
- MMF (Memory Mapped File)
- MuteX Threading

Pipe Overview
http://msdn2.microsoft.com/en-us/library/aa365780(VS.85).aspx

MMFs
http://msdn2.microsoft.com/en-us/library/aa366761.aspx
(Not really any overview on this other then the functions, but yea thats one of the main functions used and some info on it and links to others on that page.)

MuteX Objects
http://msdn2.microsoft.com/en-us/library/ms684266(VS.85).aspx

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites