---
# System prepended metadata

title: 'Bamboofox/train/suiside [50]'
tags: [Crypto, CTF, Bamboofox, writeup]

---

# Bamboofox/train/suiside [50]
###### tags: `CTF`,`Crypto`,`Bamboofox`,`writeup`
題目檔案連結：http://gofile.me/6lhQ2/qWSdaIaX8
和ccr差不多的題目，只是這次是變成相乘，沒什麼好說的
```
flag = [70,76,65,71,123,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,125]
hash = [5320,4940,4615,8733,14145,13455,12285,10395,10395,10500,10100,3232,3200,11100,11211,11615,12650,4290,4524,3712,3680,12765,11988,12744,11918,3232,3584,12768,12654,10878,10584,10908,11009,4796,1408,3136,11466,13572,3712,3584,12096,10476,11737,12705,11550,11330,3296,3200,10100,9797,9700,3200,3200,11100,11211,11615,5290,5750,1250]
def count(s,start,end):
    sum = 1
    for i in range(start,end):
        sum *= s[i]
    return sum

def checksum(s):
    for i in range(0,58):
        if count(s,i,i+2) !=hash[i]:
            s[i+1] =  hash[i]/count(s,i,i+2)
    return 1

checksum(flag)
Flag = ""
for i in range(len(flag)):
    Flag += chr(flag[i])
print(Flag)

```
