Skip to content

Instantly share code, notes, and snippets.

@Serhatcck
Created August 6, 2022 12:56
Show Gist options
  • Save Serhatcck/83ed8d28693c6d5e6591c96274a00494 to your computer and use it in GitHub Desktop.
Save Serhatcck/83ed8d28693c6d5e6591c96274a00494 to your computer and use it in GitHub Desktop.
Analyzing Android Encryption Processes with Frida
'use strict;'
Java.perform(() => {
const cipher = Java.use('javax.crypto.Cipher');
cipher.init.overload('int','java.security.Key').implementation = function(opmode,key) {
console.log("Opmode "+opmode);
console.log("Key "+key);
this.init.overload('int', 'java.security.Key').call(this, opmode, key);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment