Jump to content

jdcc4723

Senior Member
  • Posts

    166
  • Joined

  • Last visited

Posts posted by jdcc4723

  1. On 12/1/2020 at 7:01 AM, Laxus said:

    Try this. If you trying to do a function pointer and it crash, create a function pointer inside a function then call it

    
    uint64_t aslr_for_framework(const char* framework)
    {
      int image_count = _dyld_image_count();
    	  for (int i = 0; i < image_count; i++)
      {
        if (strstr(_dyld_get_image_name(i), framework))
        {
          return _dyld_get_image_vmaddr_slide(i);
          }
        }
        return 0; // could not find image
    }
    	uint64_t getRealOffset(uint64_t offset)
    {
        uint64_t aslr = aslr_for_framework("UnityFramework"); //frameworks binary name
    	    NSLog(@"ASLR %#llx", aslr);
        return aslr+offset;
    }
    	uint64_t getRealOffset(uint64_t offset);

    nothing happened when I used this code any help plz :(

    @Red16

    @Laxus

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines