export of getlibraries instead of getlibrary
This commit is contained in:
parent
79d1a0a41a
commit
32ba8cd167
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue