# [EN] 吾有一圖 ###### tags:`Writeup` `Misc` `English` > [name=FlyDragon] ## Step.1 Using binwalk to extract zip file in the `grapes.jpg` `$ binwalk -e grapes.jpg` ``` DECIMAL HEXADECIMAL DESCRIPTION -------------------------------------------------------------------------------- 0 0x0 JPEG image data, JFIF standard 1.01 WARNING: Extractor.execute failed to run external extractor 'jar xvf '%e'': [Errno 2] No such file or directory: 'jar', 'jar xvf '%e'' might not be installed correctly 131328 0x20100 Zip archive data, encrypted at least v2.0 to extract, compressed size: 67, uncompressed size: 37, name: flag.txt 131561 0x201E9 End of Zip archive, footer length: 22 ``` ## Step.2 `$ cat grapes.jpg` ``` 吾有一術。名之曰「破鎖奇術」。欲行是術。必先得一數。曰「甲」。乃行是術曰。 若「甲」等於一者。 乃得「甲」。 若非。 減「甲」以一。名之曰「乙」。 施「破鎖奇術」於「乙」。名之曰「丙」。 乘「丙」以「甲」。名之曰「丁」。 乃得「丁」 也。 是謂「破鎖奇術」之術也。 吾有一數。名之曰「秘咒」。 施「破鎖奇術」於「秘咒」。名之曰「法」。 若 「法」等於 三千九百九十一萬六千八百 者。 吾有一言。曰「「汝得秘咒矣」」。書之。 ``` Basically, this is a factorial program. --> 秘咒 == 十一 ## Step.3 URL decode spell in the `note.txt` --> `鎖啊鎖,開我所需,「{秘咒}」!` --> `鎖啊鎖,開我所需,「十一」!` ## Step.4 Encode to URL format to get the password. {%hackmd M1bgOPoiQbmM0JRHWaYA1g %}