본문 바로가기
debug/0x01-frida

frida hello world 출력하기 ][ class name과 bluetooth 관련 class name 출력하기

by SpeeDr00t 2020. 5. 15.
반응형
frida -U -l hello-world.js android.process.media
view raw hello-world.sh hosted with ❤ by GitHub
setTimeout(function(){
Java.perform(function(){
console.log("hello world!");
});
});
view raw hello-world.js hosted with ❤ by GitHub
frida -U -l enumerate_classes.js android.process.media
setTimeout(function (){
Java.perform(function (){
console.log("n[*] enumerating classes...");
Java.enumerateLoadedClasses({
onMatch: function(_className){
console.log("[*] found instance of '"+_className+"'");
},
onComplete: function(){
console.log("[*] class enuemration complete");
}
});
});
});
setTimeout(function (){
Java.perform(function (){
console.log("n[*] enumerating bluetooth classes...");
Java.enumerateLoadedClasses({
onMatch: function(_className){
if( _className.split(".")[1] == "bluetooth"){
console.log("[*] found instance of '"+_className+"'");
}
},
onComplete: function(){
console.log("[*] class enuemration complete");
}
});
});
});
~
setTimeout(function (){
Java.perform(function (){
console.log("n[*] enumerating bluetooth classes...");
Java.enumerateLoadedClasses({
onMatch: function(_className){
if( _className.split(".")[1] == "bluetooth"){
console.log("[*] found instance of '"+_className+"'");
}
},
onComplete: function(){
console.log("[*] class enuemration complete");
}
});
});
});
~

 

 

반응형

'debug > 0x01-frida' 카테고리의 다른 글

frida tutorials 실습 ][ functions  (0) 2020.06.17
frida code review ][ 클래스 이름 가져오기  (0) 2020.05.15