Inject x86 code into x64 process

Page 1 of 1

1 Replies - 99 Views - Last Post: 27 July 2012 - 12:13 PM Rate Topic: -----

#1 sparhawk  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 27-July 12

Inject x86 code into x64 process

Posted 27 July 2012 - 12:11 PM

Hi.
I am working on an x86 dll injector and i want to inject x86 code into a x64 process thread and execute it. First I was failing with calling CreateRemoteThread on x64 process which lead to error code 5. Then I've found <Removed> and I was able to create remote thread with it. But when I try to ResumeThread and execute that x86 code inside x64 process, whole process crash.

Injecting x86 to x86 works well, problem is only with x86 to x64.

So, my question is -- is it somehow possible to emulate and run x86 code copied inside x64 process? I know one way to do this would be to have two versions of the same code and choose one depending on the architecture of the remote process, but I don't find this as the best way to do this.

Thanks.

This post has been edited by macosxnerd101: 27 July 2012 - 12:12 PM
Reason for edit:: Removed link per site policies on malicious software


Is This A Good Question/Topic? 0
  • +

Replies To: Inject x86 code into x64 process

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 9044
  • View blog
  • Posts: 33,563
  • Joined: 27-December 08

Re: Inject x86 code into x64 process

Posted 27 July 2012 - 12:13 PM

DLL injectors can reasonably be used for malicious or illegal purposes. For that reason, we don't support them on Dream.in.Code. You are welcome to shoot me a PM with any questions. Topic closed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1