Skip to content

Commit

Permalink
add help message for ies and also provide feedback if running in a no…
Browse files Browse the repository at this point in the history
…n darwin session
  • Loading branch information
hexploitable authored and trufae committed Dec 10, 2024
1 parent ba873ed commit a73c148
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
3 changes: 3 additions & 0 deletions src/agent/lib/info/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a73c148

Please sign in to comment.