Logo

CS.RIN.RU - Steam Underground Community

IRC: #cs.rin.ru at irc.rizon.net
It is currently Friday, 17 Apr 2015, 10:05

English | Русский




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message

Post Post subject: [c++]Cheat Engine Tutorial Step 7 with inline asm   
Posted: Tuesday, 04 Jan 2011, 21:58   
User Редкий гость
Joined: Friday, 27 Aug 2010, 16:51
Posts: 33
hey guys,

ive tryed to use the disassembled code which is shown in CheatEngine Tutorial Step 7 with inline asm in c++.

here the picture of the disassembled code by cheat engine:

Image

iam trying to use my c++ code in a dll and inject it with winject. But when i inject my .dll into the Tutorial.exe, the Tutorial.exe will crash.

here my c++ code:
  1.  
  2. #include <windows.h>
  3.  
  4. DWORD dwUseItemFunc = 0x00407ec4;
  5.  
  6. void UseItem()
  7. {
  8.     __asm
  9.     {
  10.         mov esi,[ebx+0x00000310]
  11.         add [ebx+0x00000310], 1
  12.         lea edx,[ebp-0x04]
  13.         mov eax,[ebx+0x00000310]
  14.         call dwUseItemFunc
  15.     }
  16. }
  17.  
  18. int __stdcall DllMain(_In_ void * _HDllHandle, _In_ unsigned _Reason, _In_opt_ void * _Reserved)
  19. {
  20.     if(DLL_PROCESS_ATTACH == _Reason)
  21.     {
  22.         UseItem();
  23.     }
  24.     return 1;
  25. }


i hope, someone can help me, and sorry for bad english :roll:


Top
 Profile  

Post Post subject: Re: [c++]Cheat Engine Tutorial Step 7 with inline asm   
Posted: Tuesday, 04 Jan 2011, 22:43   
I live here Три раза сломал клаву :)
User avatar
Joined: Tuesday, 08 Jan 2008, 10:25
Posts: 3711
If that is for cheating, this is probably your last day on RIN.

_________________
Too many games...


Top
 Profile  

Post Post subject: Re: [c++]Cheat Engine Tutorial Step 7 with inline asm   
Posted: Tuesday, 04 Jan 2011, 22:51   
User Редкий гость
Joined: Friday, 27 Aug 2010, 16:51
Posts: 33
lol... i would like it never use for cheating...


Top
 Profile  

Post Post subject: Re: [c++]Cheat Engine Tutorial Step 7 with inline asm   
Posted: Wednesday, 05 Jan 2011, 01:10   
I live here Три раза сломал клаву :)
User avatar
Joined: Sunday, 02 Aug 2009, 20:57
Posts: 2091
Location: Bulgaria
Don't judge the tool by it's name.
Cheat engine is perhaps a potential programmer's first steps into C++.

I would advise asking in the developer section as long as your meanings for injecting libraries aren't harmful and go by the forum's rules.

_________________
Click here before your first post!

Handy links ;)
Random quotes
hegyak wrote:
We evolved from smart users with dumb terminals to dumb users with smart terminals.
^ This man speaks the truth.

Random user don't let it be you wrote:
Sorry for my bad English
Nearly all of us don't have English as a native language,so we can't bother you for that!
If you really doubt your English,go here and ask in your OWN language!


Random user wrote:
What's teh password p|0X?
99% of the stuff here has the password cs.rin.ru


Top
 Profile  

Post Post subject: Re: [c++]Cheat Engine Tutorial Step 7 with inline asm   
Posted: Wednesday, 05 Jan 2011, 01:22   
Dark Elf Moderator
User avatar
Joined: Saturday, 27 May 2006, 01:53
Posts: 5467
Location: DHT node
Source_engine wrote:
I would advise asking in the developer section as long as your meanings for injecting libraries aren't harmful and go by the forum's rules.


What he said.

_________________
RIP vigylant.


Top
 Profile  

Post Post subject: Re: [c++]Cheat Engine Tutorial Step 7 with inline asm   
Posted: Wednesday, 05 Jan 2011, 01:51   
User Редкий гость
Joined: Friday, 27 Aug 2010, 16:51
Posts: 33
ok, thank you guys, i have posted it on developer section, this thread can be closed or deleted!


Top
 Profile  

Post Post subject: Re: [c++]Cheat Engine Tutorial Step 7 with inline asm   
Posted: Wednesday, 05 Jan 2011, 03:17   
I live here Три раза сломал клаву :)
User avatar
Joined: Monday, 31 Mar 2008, 19:17
Posts: 6156
Location: Being smug somewhere fun
Done.

_________________
The phrase "Login to http://www.clue.org and issue the GET command" springs to mind...
Image
I moderated this forum.


Top
 Profile  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 5 guests


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 post attachments in this forum




Powered by phpBB® Forum Software © phpBB Group