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 


After steam update - Attaching the debugger crashes the game
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Tue Jul 09, 2013 6:52 am    Post subject: After steam update - Attaching the debugger crashes the game Reply with quote

I'm using VEH debugger and it has worked all the time. After the steam update released today, all of my games (no matter of third party or indie title) crashes after attaching the debugger.

Tested on:
Borderlands 2
Strike Suit Infinity
Torchlight 2
and many more.

Anyone can confirm this or found a workaround?
This was for sure not a problem before I've applied the update.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Jul 09, 2013 7:19 am    Post subject: Reply with quote

more details:

which OS?
architecture?
which CE? CE6.2 or CE6.3 ?

_________________
Back to top
View user's profile Send private message MSN Messenger
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Tue Jul 09, 2013 7:41 am    Post subject: Reply with quote

Sorry,

Windows 8 64 Bit
UAC disabled due to registry
Administrator account
CheatEngine 6.3

Yesterday it worked flawless, nothing has changed. No reboot, just applying the steam update and it crashes now.
I got the error saying that CE can't attach the debugger and the games just crash.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25792
Location: The netherlands

PostPosted: Tue Jul 09, 2013 8:39 am    Post subject: Reply with quote

Looks like loadlibrary is hooked

Code:

kernel32.LoadLibraryA:
mov edi,edi
push ebp
mov ebp,esp

will fix it for now

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Tue Jul 09, 2013 8:43 am    Post subject: Reply with quote

How do I apply this?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25792
Location: The netherlands

PostPosted: Tue Jul 09, 2013 8:44 am    Post subject: Reply with quote

execute that script in the target game before attaching the debugger (or adjust ce's injectdll function to jump over those first 5 bytes)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Tue Jul 09, 2013 8:59 am    Post subject: Reply with quote

Memory Viewer - Tools - Lua Engine -> 2th Textbox -> Execute ?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25792
Location: The netherlands

PostPosted: Tue Jul 09, 2013 9:01 am    Post subject: Reply with quote

Auto assembler
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
kl0wn
Cheater
Reputation: 2

Joined: 09 Jun 2013
Posts: 36

PostPosted: Tue Jul 09, 2013 9:02 am    Post subject: Reply with quote

I'm guessing this probably isn't an anti debugging technique?

Patch notes: http ://store.steampowered dot com/news/11052/


Last edited by kl0wn on Tue Jul 09, 2013 9:13 am; edited 1 time in total
Back to top
View user's profile Send private message
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Tue Jul 09, 2013 9:08 am    Post subject: Reply with quote

@Dark Byte: Awesome, it's working again. But I would also like to know if this is a protection or something else.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25792
Location: The netherlands

PostPosted: Tue Jul 09, 2013 9:22 am    Post subject: Reply with quote

It‘s a protection against the most simple type of dll injection
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Tue Jul 09, 2013 9:35 am    Post subject: Reply with quote

Will you add a static fix in the next SVN build?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25792
Location: The netherlands

PostPosted: Tue Jul 09, 2013 9:56 am    Post subject: Reply with quote

I doubt it, but perhaps I publish a lua script people can put in their autorun folder that autopatches it, or overrides the symbol for loadlibrarya to a prebuild trampoline, or fix the forcedinjection dll for 6.2 so it works in 6.3 as well
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Tue Jul 09, 2013 10:01 am    Post subject: Reply with quote

Any possible way would be appreciated as it's really annoying if you work on steam games and you need to copy&paste the script all the time you want to attach the debugger.

Thank you Dark Byte.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Jul 09, 2013 10:51 am    Post subject: Reply with quote

So, for now the best thing we can do is this:

Code:
function onOpenProcess()

  fixLoadLibrary = [[
kernel32.LoadLibraryA:
mov edi,edi
push ebp
mov ebp,esp
]]

  autoAssemble(fixLoadLibrary)
end


Question

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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