~a14m/OTW

8d4e04e0541dbcf29fd0c76c57a495d83d067b15 — a14m 3 years ago e4204f9
Add Krypton solutions
3 files changed, 74 insertions(+), 10 deletions(-)

A Krypton.md
M README.md
D krypton
A Krypton.md => Krypton.md +73 -0
@@ 0,0 1,73 @@
## Level 0
```bash
echo "S1JZUFRPTklTR1JFQVQ=" | base64 -d
#> KRYPTONISGREAT
```
krypton1 : KRYPTONISGREAT

## Level 1
```bash
ssh krypton1@krypton.labs.overthewire.org -p 2231
cat /krypton/krypton1/krypton2 | tr "[A-Ma-m][N-Zn-z]" "[N-Zn-z][A-Ma-m]"
#> LEVEL TWO PASSWORD ROTTEN
```
krypton2 : ROTTEN

## Level 2
```bash
ssh krypton2@krypton.labs.overthewire.org -p 2231
cd `mktemp -d`
ln -sf /krypton/krypton2/keyfile.dat
echo "ABCEDEFGHIJKLMNOPQRSTUVWXYZ" > alpha
chmod 777 .
/krypton/krypton2/encrypt alpha
cat ciphertext
#> MNOQPQRSTUVWXYZABCDEFGHIJKL

cat /krypton/krypton2/krypton3 | tr "[A-NO-Z]" "[O-ZA-N]"
#> CAESARISEASY
```
krypton3 : CAESARISEASY

## Level 3
Using https://www.boxentriq.com/code-breaking/cryptogram on any found text
and with the krypton4 file
krypton4 : BRUTE

## Level 4
Using https://www.boxentriq.com/code-breaking/vigenere-cipher on any found text
the key is `frekey` and with the krypton5 file the decoded password is `CLEAR TEXT`
krypton5 : CLEARTEXT

## Level 5
Using https://www.boxentriq.com/code-breaking/vigenere-cipher on any found text
the key is `keylength` and with the krypton6 file the decoded password is `RANDOM`
krypton6 : RANDOM

## Level 6
```bash
ssh krypton6@krypton.labs.overthewire.org -p 2231
cd `mktemp -d`
ln -sf /krypton/krypton2/keyfile.dat
echo "LFSAAAAAAAAAAAA" > test
/krypton/krypton6/encrypt6 test cipher
cat /krypton/krypton6/krypton7
#> PNUKLYLWRQKGKBE
cat cipher
#> PNUTDGYIYZKTHNS
echo "LFSRISNOTAAAAAA" > test
/krypton/krypton6/encrypt6 test cipher
cat cipher
#> PNUKLYLWRZKTHNS
echo "LFSRISNOTRANDAA" > test
/krypton/krypton6/encrypt6 test cipher
cat cipher
#> PNUKLYLWRQKGKNS
echo "LFSRISNOTRANDOM" > test
/krypton/krypton6/encrypt6 test cipher
cat cipher
#> PNUKLYLWRQKGKBE
cat /krypton/krypton6/krypton7
#> PNUKLYLWRQKGKBE
```
krypton7 : LFSRISNOTRANDOM

M README.md => README.md +1 -1
@@ 4,5 4,5 @@ Solutions to OverTheWire (OTW) wargames

- [bandit](./Bandit.md)
- [leviathan](./Leviathan.md)
- [krypton](./krypton)
- [krypton](./Krypton.md)
- [natas](./Natas.md)

D krypton => krypton +0 -9
@@ 1,9 0,0 @@
krypton.labs.overthewire.org -p 2231

krypton1 : KRYPTONISGREAT
krypton2 : ROTTEN
krypton3 : CAESARISEASY
krypton4 : BRUTE
krypton5 : CLEARTEXT
krypton6 : RANDOM
krypton7 :