From 32ba8cd16758546c4381239c83b2271e969c3c3a Mon Sep 17 00:00:00 2001 From: hyugogirubato <65763543+hyugogirubato@users.noreply.github.com> Date: Sat, 11 Jan 2025 16:53:45 +0100 Subject: [PATCH] export of getlibraries instead of getlibrary --- keydive/keydive.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keydive/keydive.js b/keydive/keydive.js index ef27e88..ce9c9a4 100644 --- a/keydive/keydive.js +++ b/keydive/keydive.js @@ -1,5 +1,5 @@ /** - * Date: 2024-11-12 + * Date: 2025-01-11 * Description: DRM key extraction for research and educational purposes. * Source: https://github.com/hyugogirubato/KeyDive */ @@ -71,7 +71,7 @@ const getLibraries = (name) => { // https://github.com/hyugogirubato/KeyDive/issues/14#issuecomment-2146788792 try { const libraries = Process.enumerateModules(); - return libraries.filter(l => l.name.includes(name)); + return name ? libraries.filter(l => l.name.includes(name)) : libraries; } catch (e) { print(Level.CRITICAL, e.message); return []; @@ -453,6 +453,6 @@ const hookLibrary = (name) => { // RPC interfaces exposed to external calls. rpc.exports = { - getlibrary: getLibrary, + getlibraries: getLibraries, hooklibrary: hookLibrary };