Skip to content

Commit aa532a2

Browse files
authored
Update spelling-quiz.md
1 parent e6d3687 commit aa532a2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

picoMini_by_redpwn/Cryptography/spelling-quiz.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Hints:
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
2727
import random
2828
import os
@@ -51,7 +51,7 @@ for filename in files:
5151
The script encrypts all .txt files in the current directory and all its subdirectories.
5252
The 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
7171
272543 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

8585
To 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
124124
I 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+
126127
However, 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
178179
For 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

Comments
 (0)