|
| 1 | +# DeadRobin's Write-up for %20rainbow |
| 2 | + |
| 3 | +--- |
| 4 | + |
| 5 | +1. because of the hint i got an idea to transform the hex code of the colors to hexdecimal characters so lets extract the hex codes first using imagemagick |
| 6 | + |
| 7 | + ```bash |
| 8 | + $ convert Untitled.png txt: |
| 9 | + 0,0: (30583,26728,28527) #77686F srgb(119,104,111) |
| 10 | + 1,0: (8224,27499,25443) #206B63 srgb(32,107,99) |
| 11 | + 2,0: (25957,30583,8224) #657720 srgb(101,119,32) |
| 12 | + 3,0: (31097,28527,30069) #796F75 srgb(121,111,117) |
| 13 | + 4,0: (8224,25443,28527) #20636F srgb(32,99,111) |
| 14 | + 5,0: (30069,27756,25700) #756C64 srgb(117,108,100) |
| 15 | + 6,0: (8224,25957,28270) #20656E srgb(32,101,110) |
| 16 | + 7,0: (25443,28527,25700) #636F64 srgb(99,111,100) |
| 17 | + 8,0: (25957,8224,29812) #652074 srgb(101,32,116) |
| 18 | + 9,0: (25957,30840,29812) #657874 srgb(101,120,116) |
| 19 | + 10,0: (8224,24929,28270) #20616E srgb(32,97,110) |
| 20 | + 11,0: (8224,26985,28013) #20696D srgb(32,105,109) |
| 21 | + 12,0: (24929,26471,25957) #616765 srgb(97,103,101) |
| 22 | + 13,0: (16191,8224,25700) #3F2064 srgb(63,32,100) |
| 23 | + 14,0: (26985,25700,8224) #696420 srgb(105,100,32) |
| 24 | + 15,0: (31097,25700,30069) #796475 srgb(121,100,117) |
| 25 | + 16,0: (8224,28527,28784) #206F70 srgb(32,111,112) |
| 26 | + 17,0: (25957,28270,8224) #656E20 srgb(101,110,32) |
| 27 | + 18,0: (29812,26728,26985) #746869 srgb(116,104,105) |
| 28 | + 19,0: (29555,8224,24929) #732061 srgb(115,32,97) |
| 29 | + 20,0: (29555,8224,24929) #732061 srgb(115,32,97) |
| 30 | + 21,0: (8224,28784,28270) #20706E srgb(32,112,110) |
| 31 | + 22,0: (26471,11308,8224) #672C20 srgb(103,44,32) |
| 32 | + 23,0: (28527,29298,8224) #6F7220 srgb(111,114,32) |
| 33 | + 24,0: (27242,30069,29555) #6A7573 srgb(106,117,115) |
| 34 | + 25,0: (29812,8224,25443) #742063 srgb(116,32,99) |
| 35 | + 26,0: (28527,28270,30326) #6F6E76 srgb(111,110,118) |
| 36 | + 27,0: (25957,29298,29812) #657274 srgb(101,114,116) |
| 37 | + 28,0: (8224,26985,29812) #206974 srgb(32,105,116) |
| 38 | + 29,0: (8224,27242,25443) #206A63 srgb(32,106,99) |
| 39 | + 30,0: (29812,26214,31611) #74667B srgb(116,102,123) |
| 40 | + 31,0: (26214,29298,28527) #66726F srgb(102,114,111) |
| 41 | + 32,0: (28013,8224,26728) #6D2068 srgb(109,32,104) |
| 42 | + 33,0: (30069,30840,16191) #75783F srgb(117,120,63) |
| 43 | + 34,0: (32125,8224,8224) #7D2020 srgb(125,32,32) |
| 44 | + ``` |
| 45 | + |
| 46 | +2. and because i am a newbie i am going to extract them manually and then transform them using python |
| 47 | + |
| 48 | + ```python |
| 49 | + >>> s = "65207477686F206B63657720796F7520636F756C6420656E636F6465787420616E20696D6167653F2064696420796475206F70656E2074686973206173206120706E672C206F72206A75737420636F6E76657274206974206A6374667B66726F6D206875783F7D2020" |
| 50 | + >>> bytes.fromhex(s).decode('utf-8') |
| 51 | + 'who knew you could encode an image? did ydu open this as a png, or just convert it jctf{from hex?} ' |
| 52 | + |
| 53 | + ``` |
| 54 | + |
| 55 | + |
0 commit comments