Rating:

# A Lost Cause

## Description

Pirate Keith loves cryptography and has protected his treasure with a very annoying caesar shift. He has witten

“CGULKVIPFRGDOOCSJTRRVMORCQDZG” on his treasure chest and has left a piece of paper with the following message:

“every subsequent letter is shifted one less than the previous.” Knowing this, can you unlock Pirate Keith’s treasure chest?

## Solution

At first the description was wrong and it said "every subsequent letter is shifted one **__more__** than the previous."

So I trid to shift them back more as the string went down.

And just yield these nonsense.

```
CFSIGQCIXIWSCBODTCZYBRSUERDYE
BERHFPBHWHVRBANCSBYXAQRTDQCXD
ADQGEOAGVGUQAZMBRAXWZPQSCPBWC
ZCPFDNZFUFTPZYLAQZWVYOPRBOAVB
YBOECMYETESOYXKZPYVUXNOQANZUA
XANDBLXDSDRNXWJYOXUTWMNPZMYTZ
WZMCAKWCRCQMWVIXNWTSVLMOYLXSY
VYLBZJVBQBPLVUHWMVSRUKLNXKWRX
UXKAYIUAPAOKUTGVLURQTJKMWJVQW
TWJZXHTZOZNJTSFUKTQPSIJLVIUPV
SVIYWGSYNYMISRETJSPORHIKUHTOU
RUHXVFRXMXLHRQDSIRONQGHJTGSNT
QTGWUEQWLWKGQPCRHQNMPFGISFRMS
PSFVTDPVKVJFPOBQGPMLOEFHREQLR
OREUSCOUJUIEONAPFOLKNDEGQDPKQ
NQDTRBNTITHDNMZOENKJMCDFPCOJP
MPCSQAMSHSGCMLYNDMJILBCEOBNIO
LOBRPZLRGRFBLKXMCLIHKABDNAMHN
KNAQOYKQFQEAKJWLBKHGJZACMZLGM
JMZPNXJPEPDZJIVKAJGFIYZBLYKFL
ILYOMWIODOCYIHUJZIFEHXYAKXJEK
HKXNLVHNCNBXHGTIYHEDGWXZJWIDJ
GJWMKUGMBMAWGFSHXGDCFVWYIVHCI
FIVLJTFLALZVFERGWFCBEUVXHUGBH
EHUKISEKZKYUEDQFVEBADTUWGTFAG
DGTJHRDJYJXTDCPEUDAZCSTVFSEZF
```

So I started to think maybe the description was wrong and tried to shift them the other way.

```
CHWOOAOWNAQOABQHZKJKPHKOAPD[I
BGVNNZNVMZPNZAPGYJIJOGJNZOCZH
AFUMMYMULYOMYZOFXIHINFIMYNBYG
ZETLLXLTKXNLXYNEWHGHMEHLXMAXF
YDSKKWKSJWMKWXMDVGFGLDGKWLZWE
XCRJJVJRIVLJVWLCUFEFKCFJVKYVD
WBQIIUIQHUKIUVKBTEDEJBEIUJXUC
VAPHHTHPGTJHTUJASDCDIADHTIWTB
UZOGGSGOFSIGSTIZRCBCHZCGSHVSA
TYNFFRFNERHFRSHYQBABGYBFRGURZ
SXMEEQEMDQGEQRGXPAZAFXAEQFTQY
RWLDDPDLCPFDPQFWOZYZEWZDPESPX
QVKCCOCKBOECOPEVNYXYDVYCODROW
PUJBBNBJANDBNODUMXWXCUXBNCQNV
OTIAAMAIZMCAMNCTLWVWBTWAMBPMU
NSHZZLZHYLBZLMBSKVUVASVZLAOLT
MRGYYKYGXKAYKLARJUTUZRUYKZNKS
LQFXXJXFWJZXJKZQITSTYQTXJYMJR
KPEWWIWEVIYWIJYPHSRSXPSWIXLIQ
JODVVHVDUHXVHIXOGRQRWORVHWKHP
INCUUGUCTGWUGHWNFQPQVNQUGVJGO
HMBTTFTBSFVTFGVMEPOPUMPTFUIFN
GLASSESAREUSEFULDONOTLOSETHEM \\looking good
FKZRRDRZQDTRDETKCNMNSKNRDSGDL
EJYQQCQYPCSQCDSJBMLMRJMQCRFCK
DIXPPBPXOBRPBCRIALKLQILPBQEBJ
```

The flag is
```
hsctf{GLASSESAREUSEFULDONOTLOSETHEM}
```

Original writeup (https://github.com/kuruwa2/ctf-writeups/tree/master/HSCTF%206/A%20Lost%20Cause).