From 60bdec8b99767b62e9262fa645a6726775cfd7b7 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Tue, 21 Oct 2025 09:42:11 -0400 Subject: update kernelcache scripting docs --- docs/guide/kernelcache.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/guide/kernelcache.md') diff --git a/docs/guide/kernelcache.md b/docs/guide/kernelcache.md index 3006bff2..80423d7d 100644 --- a/docs/guide/kernelcache.md +++ b/docs/guide/kernelcache.md @@ -78,8 +78,12 @@ Another way to interact with the kernel cache information is through the provide ```python # Load the XNU kernel from binaryninja import kernelcache -kc = kernelcache.KernelCache(bv) -kc.load_image_with_install_name('com.apple.kernel') +kc = kernelcache.KernelCacheController(bv) +image = kc.get_image_with_name('com.apple.kernel') +kc.apply_image(bv, image) ``` +???+ Note "Note" + When using the Python console in the UI, the `kernel_cache` variable is automatically available for the current view. + **Note:** *We do not support single-section loading at this time and can only load entire images.* -- cgit v1.3.1