2222
2323### Analyze the given files
2424
25- Lets start by looking at the given files. First the python script
25+ Let's start by looking at the given files. First the python script
2626``` python
2727import random
2828import os
@@ -51,7 +51,7 @@ for filename in files:
5151The script encrypts all .txt files in the current directory and all its subdirectories.
5252The files are encrypted with a simple substitution cipher.
5353
54- Then lets check the first lines of the ` study-guide.txt ` file and how many words it contains
54+ Then we check the first lines of the ` study-guide.txt ` file and how many words it contains
5555``` bash
5656┌──(kali㉿kali)-[/mnt/…/picoCTF/picoMini_by_redpwn/Cryptography/spelling-quiz]
5757└─$ head study-guide.txt
@@ -71,7 +71,7 @@ wsmvajuv
7171272543 study-guide.txt
7272```
7373
74- And last but not least lets check the encrypted flag
74+ And last but not least we check the encrypted flag
7575``` bash
7676┌──(kali㉿kali)-[/mnt/…/picoCTF/picoMini_by_redpwn/Cryptography/spelling-quiz]
7777└─$ cat flag.txt
@@ -84,7 +84,7 @@ It looks like the first `picoCTF{` part and the trailing `}` is omitted and we n
8484
8585To break the substitution cipher I installed and used [ Subbreaker] ( https://gitlab.com/guballa/SubstitutionBreaker ) .
8686
87- It's was new tool for me so I needed to check its help
87+ It was new tool for me so I needed to check its help
8888``` bash
8989┌──(kali㉿kali)-[/mnt/…/picoCTF/picoMini_by_redpwn/Cryptography/spelling-quiz]
9090└─$ ~ /python_venvs/subbreaker/bin/subbreaker -h
@@ -122,7 +122,8 @@ options:
122122```
123123
124124I first tried the entire `study-guide.txt` file as input but it seemed to take quite a while so I aborted the run.
125- Then I tried only the first 50 lines of the file but the key became corrupt with at least one faulty substitution.
125+ Then I tried only the first 50 lines of the file but the key became corrupt with at least one faulty substitution.
126+
126127However, the first 100 lines worked just fine
127128```bash
128129┌──(kali㉿kali)-[/mnt/…/picoCTF/picoMini_by_redpwn/Cryptography/spelling-quiz]
@@ -177,7 +178,7 @@ perhaps_the_dog_<REDACTED>
177178
178179For additional information, please see the references below.
179180
180- ### References
181+ ## References
181182
182183- [os.path — Common pathname manipulations](https://docs.python.org/3/library/os.path.html)
183184- [os.walk function](https://docs.python.org/3/library/os.html#os.walk)
0 commit comments