Exploit database

GH-eea3a48f56bb44846c89e0b616ed2e1f

sber-portal/sberportal-root

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2022-38181

7 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files2

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

apk/adbroot/src/com/user/adbroot/MainActivity.java

Java · 577 bytes
package com.user.adbroot;

import android.app.Activity;
import android.os.Bundle;

public class MainActivity extends Activity {
    @Override protected void onCreate(Bundle b) {
        super.onCreate(b);
        // при первом запуске сразу применяем
        try {
            Runtime.getRuntime().exec(new String[]{"/system/bin/setprop","service.adb.root","1"}).waitFor();
            Runtime.getRuntime().exec(new String[]{"/system/bin/setprop","ctl.restart","adbd"}).waitFor();
        } catch (Throwable ignored) { }
        finish();
    }
}