INNER CODE UNIT · Python

_do_work

project-sekai-ctf/sekaictf-2025 · misc/sekai-bank-transaction/challenge/poc-tester/poc-web/src/app.py:226

    def _do_work(self, q: Queue):
        chall_app = None
        poc_app = None

        q.update_status(Status.INITIALIZING)
        emit_status_update(q)

        chall_app = device.application(q.client.PACKAGE_NAME)
        if not chall_app.is_installed():
            apk_path = os.path.join(os.getcwd(), Config.CHALLENGES_FOLDER, q.client.CHALLENGE_NAME, 'challenge.apk')
            if not os.path.exists(apk_path):
                raise Exception('Challenge APK file not found!')
            
            device.upload_file(apk_path, '/data/local/tmp/challenge.apk')
            device.install_local_file('/data/local/tmp/challenge.apk')
            device.delete_file('/data/local/tmp/challenge.apk')

            if not chall_app.is_installed():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…