| View previous topic :: View next topic |
| Author |
Message |
BurnoutPriest How do I cheat?
Reputation: 0
Joined: 25 Feb 2008 Posts: 7
|
Posted: Tue Feb 26, 2008 7:06 pm Post subject: Auto Assembly Help Needed |
|
|
I decided to try out CE after a while of not working with it. So, I thought, making a trainer for the new CE Tutorial would be a great way to get back into the swing of things. My problem occurs on Step 9. You are supposed to inject C code to change the value, but I'm trying to use Auto Assembly to do it. Is there any GetTime function or some way I could use auto assembly to complete it without creating a dll? The C code that you're supposed to use is:
#include <time.h>
struct tm *timep;
time_t c;
c=time(0);
timep=localtime(&c);
if (timep->tm_sec>=30)
*(int *)addresstochange=1000;
else
*(int *)addresstochange=2000;
|
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Wed Feb 27, 2008 10:25 am Post subject: Re: Auto Assembly Help Needed |
|
|
| BurnoutPriest wrote: | struct tm *timep;
time_t c; | alloc()
| BurnoutPriest wrote: | c=time(0);
timep=localtime(&c); |
| BurnoutPriest wrote: | | Is there any GetTime function or some way I could use auto assembly to complete it without creating a dll? | Analyze the PE and hardcode the function address, or read the import table. (Use the platform specific time thingies ->MSDN for time functions.)
| BurnoutPriest wrote: | if (timep->tm_sec>=30)
*(int *)addresstochange=1000;
else
*(int *)addresstochange=2000; | Basic assembly.
|
|
| Back to top |
|
 |
BurnoutPriest How do I cheat?
Reputation: 0
Joined: 25 Feb 2008 Posts: 7
|
Posted: Wed Feb 27, 2008 10:38 pm Post subject: |
|
|
| Thanks for the help. I just decided changing a bit more of code, while a little outside the rules I wanted to follow, was the most simplistic and logical method to use. This did actually teach me a lot even though it didn't work out XD
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Feb 28, 2008 5:57 am Post subject: |
|
|
I just recently did a video tutorial for step 9 since I didn't see anyone release anything on how to do it. You can view it here:
http://www.extalia.com/files/vids/wic/Step9.swf
_________________
- Retired. |
|
| Back to top |
|
 |
BurnoutPriest How do I cheat?
Reputation: 0
Joined: 25 Feb 2008 Posts: 7
|
Posted: Thu Feb 28, 2008 4:02 pm Post subject: |
|
|
| Thanks but I can complete Step 9 normally without any problems. I was just trying to make a trainer for it which meant I had to use auto assembly.
|
|
| Back to top |
|
 |
|