프로그래밍 도서관/Python 리버싱 프로그래밍 스터디

python idc coverage

0x00 2023. 1. 3. 13:55
from idaapi import*

class FuncCoverage(DBG_Hooks):
    def dbg_bpt(self,tid,ea):
        print "[*] Hit: 0x%08x" %ea
        return


debugger = FuncCoverage()
debugger.hook()

current_addr    =   ScreenEA()

for function in Functions(SegStart( current_addr), SegEnd(current_addr)):
    AddBpt( function )
    SetBptAttr( function, BPTATTR_FLAGS, 0x0)]

    num_breakpoints =   GetBptQty()

    print "[*] Set %d breakpoint" % num_breakpoints

   

'프로그래밍 도서관 > Python 리버싱 프로그래밍 스터디' 카테고리의 다른 글

IDAPyEmu  (0) 2023.01.11
python idc stack cheak  (1) 2023.01.03
idapython (특정 함수 출력 + 페인트)  (0) 2023.01.03
IOCTL_DUMP + IOCTL_FUZZING(END)  (1) 2023.01.03
IOCTL fuzzer  (0) 2022.12.31