Skip to content

Commit bb576a4

Browse files
authored
;)
1 parent 14efa3e commit bb576a4

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
+45
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,47 @@
11
# transposition-trial
22

3+
---
4+
AUTHOR: WILL HONG
5+
6+
Description
7+
Our data got corrupted on the way here. Luckily, nothing got replaced, but every block of 3 got scrambled around! The first word seems to be three letters long, maybe you can use that to recover the rest of the message.
8+
Download the corrupted message here.
9+
10+
11+
---
12+
13+
here's the content of message.txt
14+
15+
```bash
16+
❯ cat message.txt
17+
heTfl g as iicpCTo{7F4NRP051N5_16_35P3X51N3_V6E5926A}4%
18+
```
19+
let's write a python solver.........
20+
21+
---
22+
23+
```python
24+
#!/usr/bin/python3
25+
26+
with open("message.txt") as filp:
27+
contents = filp.read()
28+
29+
for i in range(0, len(contents), 3):
30+
chunk = contents[i : i + 3]
31+
a, b, c = chunk
32+
print(c + a + b, end="")
33+
```
34+
---
35+
36+
running the above script........
37+
38+
```bash
39+
❯ python solve.py
40+
The flag is picoCTF{7R4N5P051N6_15_3XP3N51V3_56E6924A}
41+
╭─ ~/picoctf/transposition-trial
42+
╰─❯
43+
```
44+
45+
flag:```picoCTF{7R4N5P051N6_15_3XP3N51V3_56E6924A}```
46+
47+
---

0 commit comments

Comments
 (0)