Skip to content

Commit

Permalink
Add Tabular form
Browse files Browse the repository at this point in the history
  • Loading branch information
Azakme199 committed Jun 25, 2021
1 parent 3cd1572 commit 9729a4d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Forensics/87kB Magic/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@
Corrupted files are such a headache..

Author: SolvedPack#1949

flag : **csoc{C@n_y0U_wa1K_7H3_B1NArY?}**
#### Writeup

Using "pngcheck" on the png file gives "additional data after IEND chunk" which means there is some data appended to the png file. Now use "binwalk" which searches for file header and footer bytes (aka magic numbers) and outputs the list of files it found. The output it gives is:

DECIMAL HEXADECIMAL DESCRIPTION

0 0x0 PNG image, 850 x 500, 8-bit colormap, non-interlaced

157 0x9D Zlib compressed data, best compression

87211 0x154AB End of Zip archive

DECIMAL | HEXADECIMAL | DESCRIPTION
---------|-----------------|----------------------------------------------------
0 | 0x0 | PNG image, 850 x 500, 8-bit colormap, non-interlaced
157 | 0x9D | Zlib compressed data, best compression
87211 | 0x154AB | End of Zip archive

(Ignore the Zlib line as that is the part of the png image compression)
This shows that it recognized the footer bytes of a zip file, which means there is a zip file appended to the png. Notice that the program didn't find the header bytes which means they are corrupted(or edited).
Expand All @@ -24,4 +23,3 @@ Reading online about png file reveals that the png files end with "IEND" in asci
(If you're having trouble finding the "IEND" bytes, start looking from the end of the file, or alternatively you can look for the address of the "Lolz" string which you have to replace with the zip header)


flag : **csoc{C@n_y0U_wa1K_7H3_B1NArY?}**

0 comments on commit 9729a4d

Please sign in to comment.