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 


Giving Parameter

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
blackmorpheus
Expert Cheater
Reputation: 0

Joined: 05 Apr 2008
Posts: 159

PostPosted: Sun Mar 22, 2009 1:58 pm    Post subject: Giving Parameter Reply with quote

I'm trying to run PristonTale2.exe NOT using the loader.
But it will give an error because it must be loaded using the loader.
THe pt2loader.exe open pt2.exe and gives certain parameters to open PT2.exe using ShellExecuteA.
I've debugged with Olly and found the parameters.

BUt now I have 2 problems:
The parameters seem to be encrypted, but also change everytime i start another instance of pt2loader..
An example of the parameter is this:
Code:
 0012F3A8  70 1E 12 13 13 18 1E 09  p.
0012F3B0  60 7F 64 6E 73 64 6D 73  `dnsdms
0012F3B8  6F 6D 73 6C 64 6B 67 6A  omsldkgj
0012F3C0  6E 6D 6D 7F 7D 70 11 18  nmm}p
0012F3C8  7D 70 0E 18 18 19 60 18  }p`
0012F3D0  18 6A 1E 6B 1F 6F 6D 69  jkomi
0012F3D8  68 6C 6F 64 18 6E 6F 6F  hlodnoo
0012F3E0  6B 6B 69 6E 6E 64 6E 1C  kkinndn
0012F3E8  6D 1B 6D 1F 19 18 69     mmi


As you can see the parameters are stored in 0012F3A8.
See the picture.

Second question: How can I give the parameters to the program?
I normally used an injector that gave the parameters,
or i made a shortcut and added them. BUt these aren't normal ASCII letters.
Also, this game is protected by GameGuard.
I have already made a succesful bot for this game, but i want to fully remove GameGuard Smile



PT2starter.JPG
 Description:
 Filesize:  180.41 KB
 Viewed:  14316 Time(s)

PT2starter.JPG


Back to top
View user's profile Send private message
rapion124
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Mar 2007
Posts: 1095

PostPosted: Sun Mar 22, 2009 4:27 pm    Post subject: Reply with quote

Find the encryption function or the plaintext string. Maybe there's a parameter there that tells the game to run GameGuard or not. If the loader starts GameGuard, then just patch that.
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sun Mar 22, 2009 4:54 pm    Post subject: Reply with quote

Eh... Patch CreateProcessA?
Back to top
View user's profile Send private message
blackmorpheus
Expert Cheater
Reputation: 0

Joined: 05 Apr 2008
Posts: 159

PostPosted: Sun Mar 22, 2009 5:03 pm    Post subject: Reply with quote

rapion124 wrote:
Find the encryption function or the plaintext string. Maybe there's a parameter there that tells the game to run GameGuard or not. If the loader starts GameGuard, then just patch that.


Loader doesn't load GameGuard, unfortunately Sad
THe game itself (PT2.exe) does.
What do you mean by patch CreateProcessA?
When i dont insert the right parameters, my game will just not start. It needs to have the parameters for server ip etc.
Back to top
View user's profile Send private message
BanMe
Master Cheater
Reputation: 0

Joined: 29 Nov 2005
Posts: 375
Location: Farmington NH, USA

PostPosted: Sun Mar 22, 2009 5:26 pm    Post subject: Reply with quote

get the string from RTL_USER_PROCESS_PARAMETERS block during runtime (NT/XP)o0 or hook strlen :/
_________________
don't +rep me..i do not wish to have "status" or "recognition" from you or anyone.. thank you.
Back to top
View user's profile Send private message MSN Messenger
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sun Mar 22, 2009 5:44 pm    Post subject: Reply with quote

Hmm... I got an idea. This is what I used to get the launch parameter from latale:

1. Download ProcExp from sysinternals
2. Run it O.o
3. Start the game
4. Find the process in ProcExp and click properties and it should have this thing that says Command Line.
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Mar 22, 2009 7:05 pm    Post subject: Reply with quote

CreateProcess()
lpCommandLine should contain your file's path and the encrypted string.

Also, to solve your little encryption problem, set a breakpoint on write for 00443785.

_________________
Back to top
View user's profile Send private message
blackmorpheus
Expert Cheater
Reputation: 0

Joined: 05 Apr 2008
Posts: 159

PostPosted: Mon Mar 23, 2009 4:18 am    Post subject: Reply with quote

dnsi0 wrote:
Hmm... I got an idea. This is what I used to get the launch parameter from latale:

1. Download ProcExp from sysinternals
2. Run it O.o
3. Start the game
4. Find the process in ProcExp and click properties and it should have this thing that says Command Line.


GameGuard insta-hides PT2.exe when it's loaded. So i can't find the process with ProcExp.

ALso, i have given the program those weird parameters, and a MessageBox popped up and said: U must be one of the PT2 programmers. lol!
I have seen the decrypted parameter and it should be like this:
-CONNECs="93.90.20.196:7300" -LE -SEED=1FD5F06B4B8C48019D5B5EB00B3FDC3F

But how they get the seed? i have no clue.
Back to top
View user's profile Send private message
brasco
How do I cheat?
Reputation: 0

Joined: 24 Mar 2013
Posts: 1

PostPosted: Sun Mar 24, 2013 4:50 am    Post subject: TO BLACKMORPHEUS Reply with quote

Can you please contact me, I cannot PM myself! I need your help, can you PM me or send an email: tonyb0102(at)yahoo(dot)com

thank you
TB
Back to top
View user's profile Send private message
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