Skip to content

Commit 8ed7b5a

Browse files
committed
Updates forensics/qr2-330-points.md
Auto commit by GitBook Editor
1 parent 28e5c86 commit 8ed7b5a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

forensics/qr2-330-points.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Then we had an idea to find out if the mask was messed up or not. Because we kno
1010

1111
Here is "easyctf" encrypted:
1212

13-
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/blob/master/forensics/QR2/first3chars.fw.png)
13+
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/master/forensics/QR2/first3chars.fw.png)
1414

1515
Which we xored with the original broken QR (scaled down):
1616

1717
Original broken QR:
1818

19-
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/blob/master/forensics/QR2/small.png)
19+
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/master/forensics/QR2/small.png)
2020

2121
Here is the script I used:
2222

@@ -44,19 +44,19 @@ new.save("test.png")
4444

4545
Then here is the result (with a bit of edit to make the real mask more visible):
4646

47-
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/blob/master/forensics/QR2/actualmask.PNG)
47+
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/master/forensics/QR2/actualmask.PNG)
4848

4949
We can see that this mask is mask #6, except moved up one pixel! So we manually construct the same mask, offset by one pixel as well:
5050

51-
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/blob/master/forensics/QR2/sicemask.png)
51+
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/master/forensics/QR2/sicemask.png)
5252

5353
Then we xored this mask with the original messed up QR code to undo the off by one mask.
5454

55-
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/blob/master/forensics/QR2/xor1.PNG)
55+
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/master/forensics/QR2/xor1.PNG)
5656

5757
Afterwards, we apply the correct mask #6:
5858

59-
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/blob/master/forensics/QR2/xor2.PNG)
59+
![](https://raw.githubusercontent.com/VoidMercy/EasyCTF-Writeups-2017/master/forensics/QR2/xor2.PNG)
6060

6161
Then, the QR is able to be decoded by any QR code reader!
6262

0 commit comments

Comments
 (0)