Info Call to command execution API

Description

List of all command execution API calls

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.android.insecurebankv2.PostLogin.doesSUexist() calling method java.lang.Runtime.exec()


    private boolean doesSUexist()
    {
        try {
            Throwable v2_3 = Runtime.getRuntime();
            String v3_4 = new String[2];
            v3_4[0] = "/system/bin/which";
            v3_4[1] = "su";
            Process v0 = v2_3.exec(v3_4);
        } catch (Throwable v1_1) {
            if (v0 != null) {
                v0.destroy();
            }
            throw v1_1;
        } catch (Throwable v2) {
            if (v0 != null) {
                v0.destroy();
            }
            return 0;
        }
        if (new java.io.BufferedReader(new java.io.InputStreamReader(v0.getInputStream())).readLine() == null) {
            if (v0 != null) {
                v0.destroy();
            }
            return 0;
        } else {
            if (v0 != null) {
                v0.destroy();
            }
            return 1;
        }
    }