From a73c1480916d141932752a1493994f4e1f21ad97 Mon Sep 17 00:00:00 2001 From: Grant Date: Tue, 10 Dec 2024 20:34:57 +0000 Subject: [PATCH] add help message for ies and also provide feedback if running in a non darwin session --- src/agent/index.ts | 2 +- src/agent/lib/info/index.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/agent/index.ts b/src/agent/index.ts index 657f2f17..d116ac8e 100644 --- a/src/agent/index.ts +++ b/src/agent/index.ts @@ -96,7 +96,7 @@ const commandHandlers = { ie: [info.listEntrypoint, 'show entrypoint of binary in current offset'], ieq: info.listEntrypointQuiet, 'ie*': info.listEntrypointR2, - ies: info.listEntrypointSymbols, + ies: [info.listEntrypointSymbols, "List the potential entrypoints of the binary (Darwin only)"], iej: info.listEntrypointJson, afs: [anal.analFunctionSignature, 'Show function signature', '[klass] [method]'], ii: [info.listImports, 'list imports'], diff --git a/src/agent/lib/info/index.ts b/src/agent/lib/info/index.ts index 4b4c7499..709f2e40 100644 --- a/src/agent/lib/info/index.ts +++ b/src/agent/lib/info/index.ts @@ -249,6 +249,9 @@ export function listEntrypointSymbols(args: string[]): string { } }); }); + } else { + console.log("This command is only available on darwin."); + return ""; } if (symbols.length === 0) {