Uncrackable -Level1 루팅탐지

2023. 5. 10. 13:27구축/Mobile Hack

문제 다운로드

https://github.com/OWASP/owasp-mastg/blob/master/Crackmes/Android/Level_01/UnCrackable-Level1.apk

 

GitHub - OWASP/owasp-mastg: The Mobile Application Security Testing Guide (MASTG) is a comprehensive manual for mobile app secur

The Mobile Application Security Testing Guide (MASTG) is a comprehensive manual for mobile app security testing and reverse engineering. It describes the technical processes for verifying the contr...

github.com

다운로드 후 실행

 

루팅 탐지 확인

 

jdax 로 apk파일 실행 후 root detected 검색

 

Root detected 앞에 a가 무엇인지 확인 (ctrl누르고 a클릭)

 

DialogInterface.OnclickListener 가 무엇인지 확인 (구선생 검색)

위 구조와 같은거 확인 후 코드 작성

 

/*
setImmediate(function(){
	Java.perform(function(){
		var exit_bypass = Java.use("android.content.DialogInterface.OnClickListener");
		exit_bypass.onClick.implementation = function(arg, arg2){
			console.log("[*] Exit Bypass");
		}
	})
})

*/ //현재 작동 안함 -> 프리다에 Onclicklinstener api가 존재 하지 않음

구선생 안드로이드 개발자에 system.exit확인 후 찾기

 

 

setImmediate(function(){
	Java.perform(function(){
		var exit_bypass = Java.use("java.lang.System");
		exit_bypass.exit.implementation = function(arg){
			console.log("[*] Exit Bypass");
		}
	})
})

오류 뜨면 어플 백그라운드 제거 하고 다시 실행