neck392

  • 홈
  • 태그
  • 방명록

zlib 1

[PNG] Python으로 CRC32 함수를 이용한 width, height 구하기

파이썬 zlib 라이브러리의 crc32 함수를 추가(import)하면 IHDR 청크의 CRC값을 이용하여 width 값과 height 값을 다음과 같이 구할 수 있다. from zlib import crc32 file_name = input('파일 이름 입력: ') data = open(file_name, 'rb').read() index = 12 IHDR = bytearray(data[index:index + 17]) width_index = 7 height_index = 11 target_crc = input('CRC 값 입력: ') target_crc = int(target_crc, 16) # target_crc = 0x3CFA9C16 for width in range(1, 2000): width_..

Digital_forensic/File_format 2024.01.26
이전
1
다음
더보기
프로필사진

neck392

https://github.com/neck392 https://huggingface.co/neck392

  • 분류 전체보기 (118)
    • Digital_forensic (39)
      • Theory (10)
      • File_format (4)
      • Memory (1)
      • File_system (1)
      • Artifact (0)
      • Etc(Malware) (7)
      • CTF (16)
    • Offensive_security (5)
    • 보안, IT (19)
      • 정보보안 (9)
      • 네트워크, IT (10)
    • AI_Machine_Learning (2)
    • Computer_science (12)
      • Memory (11)
      • Operating_system (1)
      • File_system (0)
    • Security_trends (4)
    • Tools (4)
    • Linux (6)
    • Git (15)
    • Conference (6)
      • CISC-W'24 (6)
    • WHS2 (5)

Tag

github, linux, 보안 뉴스, forensic, 보안 동향, branch, ubuntu, memory, network, wireshark, Hex Editor, 2022 christmas ctf, digital forensic, command, Computer science, Git, Packet, merge, CRYPTO, ctf,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

Archives

Calendar

«   2026/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

  • 깃허브
  • 허깅페이스

티스토리툴바