Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
heapinspect — 🔍CTF pwn을 위한 힙 분석 도구. | Kitploit
도구/GitHubGitHub/matrix1001/heapinspect
ExploitationDebuggersCTFBinary Analysis
GitHubmatrix1001/heapinspect

heapinspect

🔍CTF pwn을 위한 힙 분석 도구.

저장소 보기
225205년 전Kitploit 검토 완료

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

HeapInspect

Pwnning은 예술입니다.

HeapInspect는 heap을 훨씬 더 예쁘게 보이도록 설계되었습니다.

이제 이 도구는 nadbg의 플러그인입니다. 사용해보세요!

기능

  • gdb 및 다른 요구 사항 없이 작동
  • 멀티 glibc 지원
    • 2.19, 2.23-2.27 (현재 테스트됨)
    • 32비트 및 64비트 모두
  • 힙을 보여주는 깔끔한 UI
    • HeapShower (자세히)
    • PrettyPrinter (색상, 요약)
  • Heapdiff (작동 중)
  • 손상 감지 및 익스플로잇 분석 (작동 중)
  • gdb도 지원
  • Python2 및 Python3 호환

사용법

빠른 사용

이 도구의 빠른 사용 예시.

pp1

pp2

raw1

rela1

또한 gdb 플러그인으로 사용할 수 있으며, pwndbg나 다른 플러그인이 힙 분석에 실패했을 때 매우 유용합니다.

root@kitploit:~
sed -i "1i source `pwd`/gdbscript.py" ~/.gdbinit # alternatively, you can add that line manually

참고

gdb1

gdb2

gdb3

기본

사용하기 매우 쉽습니다. 나중에 패키지로 만들 예정입니다.

root@kitploit:~
from heapinspect.core import *
hi = HeapInspector(1234)       #pid here
hs = HeapShower(hi)

print(hs.fastbins)
print(hs.smallbins)
print(hs.largebins)
print(hs.unsortedbins)
print(hs.tcache_chunks)

hs.relative = 1              #relative mode, check Quick shot
print(hs.fastbins)

sleep(10)
#now assume that the heap state has changed
hs.update()                  #use this to refresh

pp = PrettyPrinter(hi)
print(pp.all)                #pretty printer
pp.update()                  #use this to update

테스트

몇 가지 테스트 케이스가 있습니다.

root@kitploit:~
heapinspect/tests/ $ python test.py  #this will run all test cases for you to check this tool.

......
......

test case unsortedbins64 at test/testcases/libc-2.27/64bit
pid:6704
=========================           fastbins           =========================
=========================         unsortedbins         =========================
chunk(0x7f9aae2e6720): prev_size=0x0      size=0xb1     fd=0x7f9aacdfbca0  bk=0x7f9aae2e6880
chunk(0x7f9aae2e6880): prev_size=0x0      size=0xb1     fd=0x7f9aae2e6720  bk=0x7f9aacdfbca0
=========================          smallbins           =========================
=========================          largebins           =========================
=========================            tcache            =========================
tcache[9]:
chunk(0x7f9aae2e6670): prev_size=0x0      size=0xb1     fd=0x7f9aae2e65d0  bk=0x0
chunk(0x7f9aae2e65c0): prev_size=0x0      size=0xb1     fd=0x7f9aae2e6520  bk=0x0
chunk(0x7f9aae2e6510): prev_size=0x0      size=0xb1     fd=0x7f9aae2e6470  bk=0x0
chunk(0x7f9aae2e6460): prev_size=0x0      size=0xb1     fd=0x7f9aae2e63c0  bk=0x0
chunk(0x7f9aae2e63b0): prev_size=0x0      size=0xb1     fd=0x7f9aae2e6310  bk=0x0
chunk(0x7f9aae2e6300): prev_size=0x0      size=0xb1     fd=0x7f9aae2e6260  bk=0x0
chunk(0x7f9aae2e6250): prev_size=0x0      size=0xb1     fd=0x0             bk=0x0

문서

자세한 docstring이 소스 코드에 작성되어 있습니다.

docs에 sphinx 문서를 구축했습니다. 브라우저에서 docs/build/html/index.html을 열면 됩니다.

개발 기록

2020/5/11 버전 0.1.4

  • python3 지원

2018/12/10 버전 0.1.3

  • gdb 지원 추가

2018/11/6 버전 0.1.2

문서 업데이트.

  • sphinx 문서 업데이트
  • 파일 구조 재구성

2018/11/5 버전 0.1.1

기능 업데이트는 아닙니다.

  • PEP8
  • docstrings
  • 성능 업데이트

2018/10/31 버전 0.1.0

첫 번째 릴리스

  • 더 나은 명령줄 옵션

2018/10/30 버전 0.0.8

다음 버전은 릴리스가 될 예정입니다.

  • CRLF to LF
  • 코드 개선
  • readme 개선
  • pretty printer

2018/10/29 버전 0.0.7

  • 자동 테스트
  • 코드 개선

2018/10/27 버전 0.0.6

이 버전은 안정적이지 않습니다. 다른 glibc로 인한 버그를 수정하려고 노력 중입니다. 테스트에 도움이 필요합니다.

  • 멀티 libc 지원 추가
  • x86 지원 추가

2018/10/26 버전 0.0.5

다음 버전에서는 멀티 libc 지원이 추가될 예정입니다. heapdiff와 heap check는 나중에 추가될 것입니다.

  • HeapShower
  • 상대적 힙 및 libc 오프셋 표시
  • 검색 루프 버그 수정
  • bins는 이제 glibc 방식에 따라 fd 대신 bk부터 검색

2018/10/24 버전 0.0.4

  • HeapRecoder, heapdiff를 만들 예정
  • smallbins and largebins

2018/10/23 버전 0.0.3

  • fastbin prototype
  • unsortedbin prototype
  • bins prototype
  • tcache prototype

2018/10/22 버전 0.0.2

  • C 구조체 처리를 위해 C_Struct 추가

2018/10/19 버전 0.0.1

  • class HeapInspector 추가
  • arena의 더 많은 정보를 파싱하려고 시도

2018/10/18 버전 0.0.0

  • proc_util에 class Proc 추가
  • test.py에서 실험적 테스트
도구 다운로드