# Frida

Verifica si el runtime de Objective-C se encuentra cargado en el proceso actual de la aplicación.

```shell
ObjC.available
```

Obtener clases de la aplicación.

```shell
ObjC.classes
```

Obtener métodos de una clase.

```shell
# Obtener todos los métodos de una clase
ObjC.classes.<class-name>.$ownMethods
ObjC.classes["<class-name>"].$ownMethods

# Obtener los 5 primeros métodos de una clase
ObjC.classes.<class-name>.$ownMethods.slice(0, 5)
ObjC.classes["<class-name>"].$ownMethods.slice(0, 5)
```

Lectura de argumentos.

```javascript
var args0 = ObjC.Object(args[0]); // seft
var args1 = ObjC.Object(args[1]); // selector
var args2 = ObjC.Object(args[2]); // argumento 1
var args3 = ObjC.Object(args[3]); // argumento 2

console.log("- args0: " + args0.toString());
console.log("- args1: " + args1.toString());
console.log("- args2: " + args2.toString());
console.log("- args3: " + args3.toString());
```

Lectura de dirección de memoria.

```shell
Memory.readByteArray(ptr("<address>"), <length>);
Memory.readByteArray(ptr("0x00000000"), 64);

Memory.readCString(ptr("<address>"), <length>);
Memory.readCString(ptr("0x00000000"), 64);

Memory.readCString(ptr("<address>"), <length>).substring(<start>,<end>);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mobile.mrw0l05zyn.cl/ios/analisis-dinamico/frida.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
