GithubHelp home page GithubHelp logo

암호로 잠긴 문서 구조 파악 about pyhwp HOT 1 OPEN

mete0r avatar mete0r commented on September 28, 2024
암호로 잠긴 문서 구조 파악

from pyhwp.

Comments (1)

mete0r avatar mete0r commented on September 28, 2024

예제 samples/password-12345.hwp:

  • 암호 "12345"로 암호화되었음
  • 파일에 포함된 BIN0001.png 스트림의 크기는 520으로, 원본 크기 496 바이트에 비해 24바이트가 늘어났음. block cipher가 사용되었을 가능성 있음.
  • 원본이 암호화되기 전 압축(headerless-zlib)되었는지 여부는 알 수 었음 (파일헤더의 compressed 비트는 1)

원본 (png 파일):

0000000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52
0000020 00 00 00 10 00 00 00 10 08 06 00 00 00 1f f3 ff
0000040 61 00 00 00 01 73 52 47 42 00 ae ce 1c e9 00 00
0000060 00 06 62 4b 47 44 00 ff 00 ff 00 ff a0 bd a7 93
0000100 00 00 00 09 70 48 59 73 00 00 0b 13 00 00 0b 13
0000120 01 00 9a 9c 18 00 00 00 07 74 49 4d 45 07 dc 07
0000140 08 0d 05 09 d2 cf 5d b9 00 00 00 19 74 45 58 74
0000160 43 6f 6d 6d 65 6e 74 00 43 72 65 61 74 65 64 20
0000200 77 69 74 68 20 47 49 4d 50 57 81 0e 17 00 00 01
0000220 4b 49 44 41 54 38 cb ad 93 b1 8a c2 40 18 84 c7
0000240 4b 02 42 82 85 6d 1a 41 49 99 94 69 7c 01 91 d8
0000260 58 68 a3 90 d2 c7 b0 f2 29 52 a6 30 95 3e 44 0a
0000300 53 a4 b2 b1 b0 09 d8 48 c0 c2 6c a3 81 b9 4a 11
0000320 dc 3d 3c ee 06 b6 d9 5d 66 bf f9 ff 7f 1b 24 89
0000340 3f e8 4b 75 10 86 21 2c cb 42 18 86 3f 3b 50 a2
0000360 aa aa 68 9a 26 01 d0 34 4d 56 55 45 95 a4 04 db
0000400 ed 16 42 08 4c a7 53 08 21 b0 d9 6c 7e 47 30 1c
0000420 0e d9 6a b5 58 96 25 9b cd 26 07 83 81 92 e0 cd
0000440 a0 2c 4b 1a 86 c1 f9 7c 4e 92 1c 8d 46 d4 75 9d
0000460 e7 f3 f9 b3 08 49 92 e0 7e bf 63 32 99 00 00 c6
0000500 e3 31 ea ba c6 7a bd fe 2c 42 bf df 67 bb dd e6
0000520 ed 76 23 49 5e 2e 17 1a 86 41 df f7 a5 04 fa ab
0000540 59 51 14 48 d3 14 9e e7 21 8a a2 e7 be 6d db d8
0000560 ed 76 38 1e 8f e8 76 bb 6a 82 d5 6a 45 00 ca b5
0000600 5c 2e df 08 1a af 93 e8 ba 2e 4e a7 13 f2 3c 87
0000620 a6 69 cf 47 84 10 70 5d 17 9d 4e 07 87 c3 41 4e
0000640 b0 df ef 09 80 8b c5 42 9a 35 08 02 02 60 96 65
0000660 f2 2e c4 71 0c 00 98 cd 66 d2 62 3f ba f2 b8 f7
0000700 46 d0 eb f5 e8 38 8e 72 60 ae d7 2b 2d cb a2 6d
0000720 db ac eb 5a 5e 83 7f fd 8d 9f ea 1b 87 3c ac ee
0000740 2a 40 5d 87 00 00 00 00 49 45 4e 44 ae 42 60 82
0000760

암호화된 BIN0001.png:

0000000 77 13 90 72 a9 92 e5 0b f9 89 a3 87 02 50 9a 52
0000020 50 77 e3 b5 ec 80 40 af 20 4f d9 56 c3 b3 d4 4c
0000040 29 be 08 de bc 5d 8b 23 75 df 5d 8b a8 fc 4f ff
0000060 ff 63 5a ea 2b f9 4c ee cf 63 10 70 ef 28 37 77
0000100 84 8f c8 63 7d 96 7a 5c a9 6b c9 fb 94 81 e8 07
0000120 6b fb 95 a8 54 83 cb 65 0d 14 e5 31 06 b3 de c5
0000140 04 f3 e5 a1 9d 50 10 1d 75 c5 23 67 bc e1 da 3f
0000160 fd bd cb bd 6d 7a 52 66 f9 e3 e3 6c 76 d5 bb 80
0000200 51 dc e6 90 f5 ab 6f 84 5e 4d 46 0e 71 95 f1 97
0000220 85 5a b3 3e 43 fa 88 c4 88 a4 59 b1 3e b6 68 27
0000240 59 cd 6b d2 cd b2 8a d8 07 5a b0 cc 2e 07 10 79
0000260 d1 56 78 bd 13 8d 5d 07 12 15 3a 84 74 32 8b 0b
0000300 b9 49 96 67 36 74 bd 7c fe 7f c7 71 fc a6 60 43
0000320 65 31 9c af 29 25 53 fa d8 21 d9 62 9d d7 f6 7a
0000340 10 d3 f8 36 eb b3 03 1a 21 24 0f 8b c4 92 ab ef
0000360 95 66 21 cb 51 49 54 33 e2 eb 13 02 b8 21 4c 52
0000400 46 be ad 42 13 22 08 98 c2 0a 06 c7 b5 11 c6 1a
0000420 67 63 d9 c3 dd b7 88 0c 06 42 80 f6 c6 c7 f9 d4
0000440 ec 6c d8 fc 2e 59 35 25 68 d7 29 7a d9 b7 00 73
0000460 82 92 2b 45 75 f6 73 57 f1 48 4f f4 de 81 3c 1e
0000500 e6 a6 3f 98 ee f7 a7 65 54 d4 75 59 a7 15 56 65
0000520 d1 93 9d 3d e7 51 bb 2c a6 f3 24 4c 10 44 e9 31
0000540 14 e5 92 d7 9a 2e aa 7f db c4 cd 2f 8a 77 91 77
0000560 1a 91 36 c3 81 40 53 21 9a 3e f0 11 f8 80 c2 bd
0000600 a9 e2 c5 b0 bb 53 71 47 05 79 5a 98 b0 a2 c9 be
0000620 91 77 6e d8 b3 23 0b f1 4d d2 5c 87 3c ca 0d 82
0000640 23 e2 aa 9f ab 07 e3 6c 67 ec c9 95 92 90 3e 93
0000660 6b aa eb 6d 60 58 91 06 2f a8 e7 27 4a b9 f6 fe
0000700 5e a8 4f 39 7b 48 d3 9f bf 72 8e 19 f0 51 bc b3
0000720 36 7c 3a d1 1e 10 7c ab f8 db 51 4b 7d 0b 62 29
0000740 3b ec ad a3 9f 6b 31 12 1e c9 94 10 09 50 cd 38
0000760 8c 54 b2 8e 10 93 f5 b5 e6 7c 50 b0 b9 8e 5f a3
0001000 38 a4 ce 59 98 a4 c6 f3
0001010

from pyhwp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.