mirror of
https://github.com/hyugogirubato/KeyDive.git
synced 2026-07-15 18:40:02 +02:00
export of getlibraries instead of getlibrary
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Date: 2024-11-12
|
* Date: 2025-01-11
|
||||||
* Description: DRM key extraction for research and educational purposes.
|
* Description: DRM key extraction for research and educational purposes.
|
||||||
* Source: https://github.com/hyugogirubato/KeyDive
|
* Source: https://github.com/hyugogirubato/KeyDive
|
||||||
*/
|
*/
|
||||||
@@ -71,7 +71,7 @@ const getLibraries = (name) => {
|
|||||||
// https://github.com/hyugogirubato/KeyDive/issues/14#issuecomment-2146788792
|
// https://github.com/hyugogirubato/KeyDive/issues/14#issuecomment-2146788792
|
||||||
try {
|
try {
|
||||||
const libraries = Process.enumerateModules();
|
const libraries = Process.enumerateModules();
|
||||||
return libraries.filter(l => l.name.includes(name));
|
return name ? libraries.filter(l => l.name.includes(name)) : libraries;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print(Level.CRITICAL, e.message);
|
print(Level.CRITICAL, e.message);
|
||||||
return [];
|
return [];
|
||||||
@@ -453,6 +453,6 @@ const hookLibrary = (name) => {
|
|||||||
|
|
||||||
// RPC interfaces exposed to external calls.
|
// RPC interfaces exposed to external calls.
|
||||||
rpc.exports = {
|
rpc.exports = {
|
||||||
getlibrary: getLibrary,
|
getlibraries: getLibraries,
|
||||||
hooklibrary: hookLibrary
|
hooklibrary: hookLibrary
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user