Commit cab88c2f authored by Giovanni's avatar Giovanni 🖥

rtcp trivia fix grammar writeup

parent 06c0fefa
Pipeline #140040420 passed with stages
in 29 seconds
......@@ -234,7 +234,7 @@ all fields are encrypted using `AES-256-CBC`.
Well, we can use [frida](https://frida.re). To use it with android there is a
specialized [doc](https://frida.re/docs/android/).
We need to download [frida-server-x86-android](https://github.com/frida/frida/releases/download/12.8.20/frida-server-12.8.20-android-x86.xz), and then:
We need to download [frida-server-x86-android](https://github.com/frida/frida/releases/download/12.8.20/frida-server-12.8.20-android-x86.xz) and then:
```sh
$ adb root # might be required
......@@ -253,6 +253,7 @@ $ frida-ps -U
832 android.ext.services
360 [email protected]
361 [email protected]
[...]
692 webview_zygote
416 wificond
781 wpa_supplicant
......@@ -353,6 +354,8 @@ for (final int i = 0; i < jSONObject.getJSONArray("options").length(); i++) {
}
```
The plan is:
1. Create an object of the class `nw` (onClick handler).
2. Create an object of the class `Base64` (to decode JSON fields).
3. Create an object of the class `String` (to create custom string).
......@@ -385,12 +388,14 @@ Java.perform(function x() {
var cipher = Java.use('javax.crypto.Cipher');
cipher.init.overload('int', 'java.security.Key', 'java.security.spec.AlgorithmParameterSpec').implementation = function(a1, a2, a3) {
console.log("calling cipher, with arg:");
// initialize the cipher
var a = this.init(a1, a2, a3);
console.log("a");
// read the correct answer
var dec = this.doFinal(b64.decode(json.getString("correctAnswer"), 0));
var answer = stringJava.$new(dec);
console.log("done: " + done);
done = done + 1;
// submit correct answer
nwClass.a().a("{\"method\":\"answer\",\"answer\":" + answer + "}");
return a;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment