PDA

View Full Version : Memory




stece
Nov 14, 2008, 06:38 AM
Dear all

Could somebody inform me, please, how Mac OS X memory is organised?
What address spaces are there ? And if possible please, inform me where I can get values of these buffers from ?

Thank you in advance.



sammich
Nov 14, 2008, 06:40 AM
Sounds fishy to me. :D

I think Apple implemented something like address space layout randomisation...anyway here's the link to it
http://en.wikipedia.org/wiki/Address_space_layout_randomization

stece
Nov 14, 2008, 07:38 AM
Sounds fishy to me. :D

I think Apple implemented something like address space layout randomisation...anyway here's the link to it
http://en.wikipedia.org/wiki/Address_space_layout_randomization

I'd like to cipher my code. I don't know how to implement the deciphered code into Mac. I think I should inject it into shell, but how to do it not knowing the shell address in Mac OS X ?

Please correct me what is wrong in my thinking.

kainjow
Nov 14, 2008, 02:05 PM
What are you trying to do? If you're trying to override system functions, then mach_inject might be of use. If you're trying to override a feature in a Cocoa app you can use SIMBL plugins.

stece
Nov 14, 2008, 02:53 PM
Thank you I must do some study on overriding a function. I want to play a litlle bit on cryptography.