---
# System prepended metadata

title: 'picoCTF: transposition-trial'
tags: [picoCTF]

---

1. Every block of 3 in the message got scrambled around. From the first three letters (and the following words like `flag`, `is`,`pico`), we can tell that the plain text should be printed in the order of 2,3,1.
![](https://hackmd.io/_uploads/BJb5NEknn.png)

2. Write a Python script to print the flag
```python=
instr="heTfl g as iicpCTo{7F4NRP051N5_16_35P3X51N3_V6E5926A}4"
for i in range(0,len(instr),3):
    print(instr[i+2],instr[i],instr[i+1],sep="",end="")
```
3. Output:
```shell
┌──(kali㉿kali)-[~/code]
└─$ /bin/python /home/kali/code/transpo.py
The flag is picoCTF{7R4N5P051N6_15_3XP3N51V3_56E6924A} 
```