# TASK 2
# chall 1:

-> dựa vào kiến thức encoding của cryptohack
f_block1:

f_block2:

f_block3:

f_block4:

## flag1:
shark{ascii_hexadecimal_base64_bigInterger}
## test code:

# chall 2:

-> decode base64, hex 3 lần






## flag2:
flag = shark {H3110_MY_Fr13ND}
## test code:

# chall 3:

input:
```
def xor(a: bytes, b: bytes):
return bytes([a[i%len(a)] ^ b[i%len(b)] for i in range(max(len(a), len(b)))])
flag = b"shark{????????????????????????????}"
key = b"??????"
output = b"\x10\x1a\x18\x02\x1f\x14\x1b\x1d\x0b/<\x0e<$\x18\x1e+,\x16\x0f"
key = xor(flag, output)
print(key)
from pwn import xor
key = bytes.fromhex('63727970746f')
print(xor(output,key))
```
output:
```
b'shark{xor_Ha_Van_Cu}'
```
## flag3:
flag = shark{xor_Ha_Van_Cu}
## test code:

# chall 4:

-> số xui xẻo, không may mắn thường là số 13.


## flag4:
flag = shark{let_me_down_slowly}
## test code:

# chall 5:

-> lag = xor(key1,key2)
input:
```
key3 = b'7\xdc\xb2\x92\x03\x0f\xaa\x90\xd0~\xec\x17\xe3\xb1\xc6\xd8\xda\xf9L5\xd4\xc9\x19\x1a^\x1e'
key4 = b'\x91\x14\x04\xe1?\x94\x88N\xab\xbe\xc9%\x85\x12@\xa5/\xa3\x81\xdd\xb7\x97\x00\xddm\r'
key5 = b'\x04\xee\x98U \x8a,\xd5\x90\x91\xd0Gg\xaeG\x961p\xd1f\r\xf7\xf5o_\xaf'
key6 = b'\xd1NOTwjzy\x8a?\xaa\x14oe\x9e\x85\xacKh\xd1\x18\xc0\x89\xdc3\xd8\xc7VqRnpgT\x9a$\x94\x08'
from pwn import xor
key1 = xor(key3,key4)
key2 = xor(key5,key6)
print(xor(key1,key2))
```
output:
```
b'shark{tran_anh_nhat_viet_dep_trai_qua}'
```
## flag5:
flag = shark{tran_anh_nhat_viet_dep_trai_qua}
## test code:

# chall 6:


## flag6:
flag = shark{B4BY_5H4rK_D00_D00_D00_D00}
## test code:

# chall 7:

Br41LL3 alphabet -> braille alphabet

## flag7:
flag = shark{t00_bl1nd_t0_s33}
## test code:
