Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > mach_inject for Intel Macs?

mach_inject for Intel Macs?
Thread Tools
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Feb 14, 2006, 08:51 PM
 
Anyone have an updated copy of mach_inject for use on Intel Macs? I'm trying to build "Desktop Manager" as a Universal binary, but it relies on mach_inject, and right now, it only works on the PPC mach kernel. Thanks!
     
Fresh-Faced Recruit
Join Date: Apr 2005
Location: Newcastle, Australia
Status: Offline
Reply With Quote
Mar 24, 2006, 04:43 AM
 
You have two choices -- http://virtuedesktops.sf.net/, which I maintain - or http://guiheneuf.org/Site/Code.html which has a version of DM for intel-based macs. Have fun!
     
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Mar 24, 2006, 06:22 AM
 
I did not realize some (all?) haxies rely on patching mach. That sounds pretty dangerous.

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Mar 24, 2006, 09:58 AM
 
What do you mean?
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Mar 24, 2006, 10:17 AM
 
It just seems to me that patching the kernel would be rather dangerous inherently, and, additionally, I imagine having such a thing installed could give malware coders a real leg up.
(Last edited by Big Mac; Mar 24, 2006 at 10:58 AM. )

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Mar 24, 2006, 10:41 AM
 
No, I mean, where are you seeing kernel patching?
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Mar 24, 2006, 10:57 AM
 
Isn't it named mach_inject because it injects code into Mach?

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Mar 24, 2006, 11:14 AM
 
It's called mach_inject because it uses low-level Mach functions to inject code into other programs' memory spaces. If it touches the kernel, that's news to me. (Also, I think Unsanity's haxies use a different trick to do their magic.)
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
timmerk  (op)
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Mar 27, 2006, 12:38 AM
 
http://guiheneuf.org/Site/Code.html says its version .53 for intel, but it's not. The version on that site is using the .6 codebase, which is very buggy (both the official codebase and the intel version).

So, I took the .53 source from the official site, then took the 2 mach_inject files that are compatible with intel, and merged together, compiled, and it works! Much faster too!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:29 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2