Post

Snorlax - Payatu Hiring CTF Writeup

Walkthrough for the Snorlax Android reverse engineering challenge from Payatu Hiring CTF.

Snorlax - Payatu Hiring CTF Writeup

Challenge Info

FieldDetails
CTFPayatu Hiring CTF
ChallengeSnorlax
CategoryAndroid / Reverse Engineering

Solution

We can install the APK in our emulator,But when we try to open it

alt text

We cannot enter the APP, it is doing somekind of checking - probably root/emulator detection which is not allowing us to open the app. We can inspect it in Jadx to get more idea

alt text

There isn’t much in Main Activity, we just need to open the app and click on the image to get the flag which is loaded from a native lib If we check the lib folder we see,

alt text

There are two native libs

  1. libnative-lib.so –> from where the flag is loaded
  2. libtoolcheck.so –> the root detector

We can further inspect libtoolcheck.so to get more idea about it

alt text

It is indeed a root check which checks if a particular root binaries are present or not for root detection We just need to bypass this to get the flag I used a Frida root detection bypass script from github And loaded this bypass script, to get the flag

alt text

Flag

1
FLAG:PAYATU{SN0RL3X15BL0CKNGXYZUIQP13J4}
This post is licensed under CC BY 4.0 by the author.