Skip to content

Commit

Permalink
Run :ies only on app classes
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Dec 10, 2024
1 parent e7ba497 commit 71557b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/agent/lib/info/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,13 @@ export function listEntrypointSymbols(args: string[]): string {
const classes = ObjC.classes;
Object.keys(classes).forEach(function (className: string) {
var cls = ObjC.classes[className];
if (cls.$moduleName !== null && cls.$moduleName !== "main") {
return;
}
var methods = cls.$methods; // $ownMethods?
methods.forEach(function (methodName) {
try {
var address = cls[methodName].implementation; // Get the implementation address
console.log(" Method: " + methodName + " | Address: " + address);
if (validEntrypoints.includes(methodName)) {
symbols.push({ name: className + "." + methodName, address: address });
}
Expand All @@ -253,8 +255,8 @@ export function listEntrypointSymbols(args: string[]): string {
return "";
}
const entries = symbols
.map((entry) => {
return 'f entry.' + entry.name + ' = ' + entry.address;
.map((symbol) => {
return 'f entry.' + symbol.name + ' = ' + symbol.address;
}).join('\n');
return "fs+symbols\n" + entries + "\nfs-";
}
Expand Down

0 comments on commit 71557b4

Please sign in to comment.