mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-06 09:13:02 +01:00
fixed check_root file extensions
This commit is contained in:
parent
b47ed549c8
commit
3e3202bb71
@ -39,12 +39,27 @@ public class check_root_android implements Command {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Fixed extensions in /system/app/,
|
||||||
|
//as per Samsung Galaxy S4 i9505 running Android v5.0.1
|
||||||
|
file = new File("/system/app/Superuser");
|
||||||
|
if (file.exists()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
file = new File("/system/app/SuperSU");
|
||||||
|
if (file.exists()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception e1) {
|
} catch (Exception e1) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return canExecuteCommand("/system/xbin/which su")
|
return canExecuteCommand("/system/xbin/which su")
|
||||||
|| canExecuteCommand("/system/bin/which su")
|
|| canExecuteCommand("/system/bin/which su")
|
||||||
|
|| canExecuteCommand("/system/xbin/su")
|
||||||
|| canExecuteCommand("which su");
|
|| canExecuteCommand("which su");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user