Rating: 4.0
Korean Write-up by kimtruth
[https://kimtruth.github.io/2018/05/07/PCTF-2018-macsh-Crypto/](https://kimtruth.github.io/2018/05/07/PCTF-2018-macsh-Crypto/)
```python
from pwn import *
r = remote('macsh.chal.pwning.xxx', 64791)
r.recv()
cmd = 'cat flag.txt'
cmdline = 'A' * 16 * 256 + cmd
r.sendline(' <|>tag ' + cmdline)
mac = r.recv().split()[0]
print mac
cmdline = ' ' * 16 * 256 + cmd
r.sendline(mac + '<|>' + cmdline)
print r.recv()
```