AES Key decryption

01. Introduction

In this exercise we'll try to decrypt the the password of the CrackMeSimple Challenge, by analysing the ProgramCode.

APK File:

02. Code analysis

Open the package with jadx-gui. The following AES Util Part looks interessting:

We can see the AES encryption key and the initialization vector:

I also took notice about the cipher instance: AES/CBC/PKCS5Padding

From the encryption key a SHA-256 cryptographic hash(!) will be generated:

The second interessting part is the LoginView Model class:

03. Decode with Cyberchef

First I generate a SHA-256 hash from the encryption key:

Output:

Now we have all pieces together. The final Cyberchef Recipe looks like this:

Input value:

Output: HL{R3v3rsing.FUN}

Last updated

Was this helpful?