This code is still ugly, please re-write it and send pull-requests, if you want to use this.
-
Install mmap backdoor
install_backdoor -
Uninstall mmap backdoor
install_backdoor -u -
Run shell with temporary root privilege.
run_root_shell -
Run command "/data/local/autoexec.sh" with root privilege.
run_autoexec -
Fix CVE-2013-6282 vulnerability with custom __get/put_user handlers.
fix_cve_2013_6282 -
Unlock fjsec LSM for Fujitsu devices.
unlock_lsm_fjsec -
Unlock MIYABI LSM for SHARP devices.
unlock_lsm_miyabi -
Unlock MMC protected partitions for SHARP devices.
unlock_mmc_protect -
Unlock SEC LSM for SC-04E.
unlock_sec_sc04e -
Disable TOMOYO LSM for Panasonic and LG devices.
disable_ccsecurity -
Call reset_security_ops to disable normal LSM.
reset_security_ops -
Print kernel symbols out.
kallsymsprint