__DATA,__objc_stringobj ?

Questions and Answers about all things *OS (macOS, iOS, tvOS, watchOS)

Re: __DATA,__objc_stringobj ?

Postby umbri » Mon Jun 13, 2016 5:00 pm

Just realized how all are simple :]

I successfully find cstrings addresses and from your previous message I guess I will not be able to modify them, cose of protection, may be some other suggestions ??

Thank you

UPDATE:

confirmed:
Code: Select all
Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x00000001000c3f10
umbri
 
Posts: 9
Joined: Thu May 26, 2016 7:17 am

Re: __DATA,__objc_stringobj ?

Postby morpheus » Mon Jun 13, 2016 11:02 pm

O'ye of little faith :-) I wanted to save you the heart ache. But yeah, SIGBUS is exactly that.
morpheus
Site Admin
 
Posts: 532
Joined: Thu Apr 11, 2013 6:24 pm

Re: __DATA,__objc_stringobj ?

Postby umbri » Tue Jun 14, 2016 8:20 am

I have an idea about __cfstring, I will compile with
Code: Select all
-fno-constant-cfstrings -fconstant-string-class=MyCustomStringClass
, and then in "MyCustomStringClass" load decrypted cfstrings
After compile, I will, static parsing of __cfstring and encrypt all string directly in mach-o but there can be some problems,

1) if there is some cstring that was defined and exactly same cfstring then ... I think I will check this before static parsing and restrict using only cfstrings.

What do you think about this ?

May be you have ideas how to deal with cstring ??

Thank you
umbri
 
Posts: 9
Joined: Thu May 26, 2016 7:17 am

Previous

Return to Questions and Answers

Who is online

Users browsing this forum: No registered users and 1 guest