【TryHackMe】Break it：Walkthrough

# 概要

TryHackMe「Break it」のWalkthroughです。

https://tryhackme.com/r/room/breakit

# Task1

## **Q1**.*[Super easy] MVQXG6K7MJQXGZJTGI======*

`base32`でデコードします。

```
$ echo "MVQXG6K7MJQXGZJTGI======" | base32 -d
easy_base32
```

**A**.**easy_base32**

## **Q2**.*[Easy] TVJYWEtZVE1NVlBXRVlMVE1WWlE9PT09*

**Hint**.*Two is better than one*

`base64`->`base32`の順番でデコードすると解読できます。

```
$ echo "TVJYWEtZVE1NVlBXRVlMVE1WWlE9PT09" | base64 -d | base32 -d
double_bases
```

**A**.**double_bases**

## **Q3**.*[Moderate] GM4HOU3VHBAW6OKNJJFW6SS2IZ3VAMTYORFDMUC2G44EQULIJI3WIVRUMNCWI6KGK5XEKZDTN5YU2RT2MR3E45KKI5TXSOJTKZJTC4KRKFDWKZTZOF3TORJTGZTXGNKCOE======*

**Hint**.*There are base other than base64*

`base32`->`base58`->`Hex`->`base64`の順で解読に成功しました。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/16ed7757-f21f-6dbb-f32b-0fe2a631ccaa.png)

**A**.**base16_is_hex**

## **Q4**.*[Hard] HRBUGQDUHFWDIXKUIBWXIJTHIE3DCY3BIE2FKQSZHNDE6MRUIA2TWWDMHRBV2ZKCHQWFCTLPIE2EEJDBIBZCEW3OHUSTOLRCHNFGMVC6IFJXIQ2AHVMVONSBHVOVIM2MHVPV42J4HQVCQ4REIFHVIJ2WHFWDYQSUHROGILJCIFIU23CXHNCEIXK2HRDVSXKOHV2SQJLC*

**Hint**.*Which base contain Ascii character from 33 ('!') to 127 ('u')*

`base32`->`base85`->`base64`->`base58`->`base85`->`base64`->`base64`の順で解読に成功しました。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/d4cd55df-1c15-57fb-a46c-3ab4e45aae6f.png)

**A**.**that_is_a_lot_of_bases**

## **Q5**.*[Insane] GIUTMORPGBFEMVRKGEVECRZRFM7GGW(省略)*

**Hint**.*The shorter, the better.*

`base32`->`base85`->`decimal`->`Hex`->`base91`->`base58`->`Hex`->`base64`->`decimal`->`Hex`の順で解読に成功しました。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/b01524fc-40f7-e253-48d7-ae4424498957.png)

**A**.**defense_the_base**

# Task2

## **Q1**.*[Easy] PJXHQ4S7GEZV6ZTDOZQQ====*

**Hint**.*Base or cipher or both?*

`base32`->`rot13`の順で解読に成功しました。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/ff2de7d5-ff9d-6a90-c1cf-cb5438047300.png)

**A**.**make_13_spin**

## **Q2**.*[Moderate] NjZMKVhATl1EcEI2Jio4Q0xuVy1EZSo5ZkFLV0M6QVUtPFpGQ0InIkReYg==*

**Hint**.*It was deciphered in 1863*

`base64`->`base85`->`Vigenere cipher`の順で解読に成功しました。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/9947b1ec-c718-d969-8f9c-3e16907fe134.png)

**A**.**I luv vigenere cipher**

## **Q3**.*[Hard] -!r/X,]n/Z-Zs\X,X$,rI<@]#-9Oh,-=A]R-p9\+*

**Hint**.*base, rot, base, base, rot. Ah, whatever*

`base85`->`rot47`->`base64`->`base32`->`rot13`の順で解読に成功しました。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/29a30968-15cb-8cc5-ea5e-fa1dbb8e3c83.png)

**A**.**decode_and_rot**

## **Q4**.*[Insane] GZXSMPKXH4RGE4TKGQSV(省略)*

**Hint**.*Oops, i put the key at the wrong place*

`base32`->`base85`->`base91`->`decimal`->`Hex`->`base64`->`base58`->`Vigenere Cipher(key=tangodown)`の順で解読に成功しました。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/2c14a830-b8bd-2fa4-73de-10c3f56895fb.png)

**A**.**you are a real code cracker**

# Task3

## **Q1**.*[Moderate] 2D 37 2B 19 31 99 31 B3 B2 AB A5 18 32 37 20 B3 B2 AC 2D 1A 31 B4 A1 3A A4 A3 9C B4 AD 36 AC 9E*

**Hint**.*Logic shift*

`block shift left`->`base64`->`rot13`の順で解読に成功しました。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/d59df71f-4a43-c9ce-0c4b-b52cdfd7c49e.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/b4b58955-53e9-5be8-c7b5-a4e0daa00ed3.png)

**A**.**shift logic like a boss**

## **Q2**.*[Hard] 19 1A 1C 99 1C 9C A8 38 27 B2 34 27 B9 27 26 28 3C 3B AA 28 A5 AA 2A 29 3C 29 B2 B2 21 B1 AC A6 1C AC 29 A8 38 99 2C*

**Hint**.*Arithmetic shift (8 bits)*

`arithmetic shift(8 Bits)`->`base58`->`rot13`の順で解読に成功しました。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/e1f5b76b-678e-2621-258a-cc47458b9d79.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/3538d12c-9d42-cf69-b5f3-b513f1d33842.png)

**A**.**shift arithmetic like a boss**

## **Q3**.*[Insane] A9 A8 2B EE 2A AA C9 C8 C9 AA A8 0F 2A 8A AA EE A9 8A CA A8 A9 4F 6D 46 E9 A8 A8 0F A9 8A 6D 86 A9 AA A9 26 2A 8A 48 E8*

**Hint**.*Arithmetic (8 bits), base, logic, base, rot (Best hints i can give)*

`bit shift`->`base64`->`bist shift`->`base85`->`rot13`の順で解読に成功しました。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/d4a52c77-67fb-7ad8-fbd5-abd737bc37bd.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/53308264-724c-8d97-64d3-da006a5d253b.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/f690edee-61e1-fbf8-ce95-064595fae3b5.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/3005822/b862bde3-831f-e905-1f73-98e46f5bcf95.png)

**A**.**God of shifs**