Skip to content

Commit 7cc4526

Browse files
authored
Update solution.md
1 parent 7c6af94 commit 7cc4526

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tamuctf2018/readyXORnot/solution.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
### readyXORnot
2+
3+
original data: "El Psy Congroo"
4+
encrypted data: "IFhiPhZNYi0KWiUcCls="
5+
encrypted flag: "I3gDKVh1Lh4EVyMDBFo="
6+
7+
8+
Simple XOR known text attack
9+
10+
```
11+
➜ ~ python
12+
>>> import pwn
13+
>>> pwn.xor(pwn.b64d('IFhiPhZNYi0KWiUcCls='), 'El Psy Congroo')
14+
'e4Bne4Bne4Bne4'
15+
>>> pwn.xor(pwn.b64d('I3gDKVh1Lh4EVyMDBFo='), 'e4Bne4Bne4Bne4')
16+
'FLAG=Alpacaman'
17+
```

0 commit comments

Comments
 (0)