Tags: forensics 

Rating:

題目:I found two files in a secret room. They look like jumbled letters with no patterns. I mean look at it! file1 is identical to file2, right?

下載file1和file2的檔案在這裡:

https://github.com/SJChang/EasyCTF2017

file1和file2都是兩個密密麻麻的文字檔案.

他問說file1和file2 是兩個完全相同的檔案嗎?

這邊使用的是cmp指令:用來比較兩個文件內容是否相同

cmp的參數運用方式如下

Mandatory arguments to long options are mandatory for short options too.
-b, –print-bytes print differing bytes
-i, –ignore-initial=SKIP skip first SKIP bytes of both inputs
-l, –verbose output byte numbers and differing byte values
-n, –bytes=LIMIT compare at most LIMIT bytes
-s, –quiet, –silent suppress all normal output
–help display this help and exit

Original writeup (https://tw-sas.com/2017/03/29/easyctf-2017-petty-difference-75-pts/).