BlueHens CTF 2021: Minecraft: MineR Code

This is from the BlueHensCTF 2021.

Challenge Author: ProfNinja

For this challenge, We are given the following information and links:

Here is the mc86 Intro:

Here is the mc86 InitCode:

/give @p minecraft:written_book{title:"Init CPU",author:"UD Cyberscholars",generation:0,pages:[
"{\"text\":\"Click Here First\\n\",\"color\":\"dark_green\",\"bold\":true,\"underlined\":true,\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Creating RAM\"},\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock ~1 ~ ~ minecraft:lime_shulker_box\"},
\"extra\":[
{\"text\":\"Click Here Second\\n\",\"color\":\"dark_green\",\"bold\":true,\"underlined\":true,\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Start Timing Belt\"},\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock ~2 ~1 ~ minecraft:command_block[facing=up]{powered:0b,Command:\\\"setblock ~ ~-1 ~ air\\\"}\"}},
{\"text\":\"Click Here Third\\n\",\"color\":\"dark_green\",\"bold\":true,\"underlined\":true,\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Finishing Timing Belt\"},\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock ~2 ~2 ~ minecraft:chain_command_block[facing=up]{powered:0b,auto:1b,conditionMet:0b,Command:\\\"execute if data block ~-1 ~-2 ~ Items[0].tag.pages[0] run setblock ~ ~-2 ~ redstone_block\\\"}\"}},
{\"text\":\"Click Here Fourth\\n\",\"color\":\"dark_green\",\"bold\":true,\"underlined\":true,\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Start CPU\"},\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock ~3 ~ ~ minecraft:command_block[facing=east]{powered:0b,Command:\\\"data modify block ~2 ~ ~ Command set from block ~-2 ~ ~ Items[0].tag.pages[0]\\\"}\"}},
{\"text\":\"Click Here Fifth\\n\",\"color\":\"dark_green\",\"bold\":true,\"underlined\":true,\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Finishing CPU\"},\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock ~4 ~ ~ minecraft:chain_command_block[facing=east]{powered:0b,auto:1b,conditionMet:0b,Command:\\\"data remove block ~-3 ~ ~ Items[0].tag.pages[0]\\\"}\"}},
{\"text\":\"Click Here Sixth\\n\",\"color\":\"dark_green\",\"bold\":true,\"underlined\":true,\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"Placing ALU\"},\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock ~5 ~ ~ minecraft:chain_command_block[facing=east]{powered:0b,auto:1b,conditionMet:0b}\"}}]}"]} 1

Finally, here is the challenge source code:

/give @p writable_book{pages:["/fill ~-1 ~26 ~-5 ~25 ~ ~-5 white_concrete","/fill ~0 ~25 ~-5 ~6 ~25 ~-5 black_concrete","/fill ~9 ~25 ~-5 ~11 ~25 ~-5 black_concrete","/fill ~14 ~25 ~-5 ~14 ~23 ~-5 black_concrete","/fill ~18 ~25 ~-5 ~24 ~25 ~-5 black_concrete","/fill ~0 ~24 ~-5 ~0 ~19 ~-5 black_concrete","/fill ~6 ~24 ~-5 ~6 ~19 ~-5 black_concrete","/fill ~11 ~24 ~-5 ~13 ~24 ~-5 black_concrete","/fill ~16 ~24 ~-5 ~16 ~24 ~-5 black_concrete","/fill ~18 ~24 ~-5 ~18 ~19 ~-5 black_concrete","/fill ~24 ~24 ~-5 ~24 ~19 ~-5 black_concrete","/fill ~2 ~23 ~-5 ~4 ~21 ~-5 black_concrete","/fill ~9 ~23 ~-5 ~11 ~23 ~-5 black_concrete","/fill ~20 ~23 ~-5 ~22 ~21 ~-5 black_concrete","/fill ~8 ~22 ~-5 ~8 ~21 ~-5 black_concrete","/fill ~10 ~22 ~-5 ~13 ~22 ~-5 black_concrete","/fill ~16 ~22 ~-5 ~16 ~21 ~-5 black_concrete","/fill ~10 ~21 ~-5 ~10 ~19 ~-5 black_concrete","/fill ~12 ~21 ~-5 ~13 ~21 ~-5 black_concrete","/fill ~9 ~20 ~-5 ~9 ~20 ~-5 black_concrete","/fill ~14 ~20 ~-5 ~14 ~18 ~-5 black_concrete","/fill ~1 ~19 ~-5 ~5 ~19 ~-5 black_concrete","/fill ~8 ~19 ~-5 ~8 ~19 ~-5 black_concrete","/fill ~12 ~19 ~-5 ~12 ~19 ~-5 black_concrete","/fill ~16 ~19 ~-5 ~16 ~18 ~-5 black_concrete","/fill ~19 ~19 ~-5 ~23 ~19 ~-5 black_concrete","/fill ~9 ~18 ~-5 ~9 ~17 ~-5 black_concrete","/fill ~15 ~18 ~-5 ~15 ~18 ~-5 black_concrete","/fill ~0 ~17 ~-5 ~1 ~17 ~-5 black_concrete","/fill ~5 ~17 ~-5 ~7 ~17 ~-5 black_concrete","/fill ~10 ~17 ~-5 ~10 ~16 ~-5 black_concrete","/fill ~13 ~17 ~-5 ~13 ~15 ~-5 black_concrete","/fill ~20 ~17 ~-5 ~21 ~16 ~-5 black_concrete","/fill ~2 ~16 ~-5 ~4 ~15 ~-5 black_concrete","/fill ~8 ~16 ~-5 ~8 ~16 ~-5 black_concrete","/fill ~11 ~16 ~-5 ~11 ~16 ~-5 black_concrete","/fill ~14 ~16 ~-5 ~16 ~16 ~-5 black_concrete","/fill ~19 ~16 ~-5 ~19 ~16 ~-5 black_concrete","/fill ~22 ~16 ~-5 ~23 ~16 ~-5 black_concrete","/fill ~0 ~15 ~-5 ~1 ~15 ~-5 black_concrete","/fill ~6 ~15 ~-5 ~6 ~15 ~-5 black_concrete","/fill ~9 ~15 ~-5 ~9 ~15 ~-5 black_concrete","/fill ~14 ~15 ~-5 ~15 ~15 ~-5 black_concrete","/fill ~21 ~15 ~-5 ~21 ~14 ~-5 black_concrete","/fill ~23 ~15 ~-5 ~24 ~15 ~-5 black_concrete","/fill ~5 ~14 ~-5 ~5 ~13 ~-5 black_concrete","/fill ~10 ~14 ~-5 ~11 ~12 ~-5 black_concrete","/fill ~14 ~14 ~-5 ~14 ~11 ~-5 black_concrete","/fill ~16 ~14 ~-5 ~19 ~14 ~-5 black_concrete","/fill ~24 ~14 ~-5 ~24 ~13 ~-5 black_concrete","/fill ~0 ~13 ~-5 ~0 ~9 ~-5 black_concrete","/fill ~4 ~13 ~-5 ~4 ~11 ~-5 black_concrete","/fill ~6 ~13 ~-5 ~9 ~13 ~-5 black_concrete","/fill ~16 ~13 ~-5 ~16 ~12 ~-5 black_concrete","/fill ~18 ~13 ~-5 ~18 ~13 ~-5 black_concrete","/fill ~2 ~12 ~-5 ~2 ~9 ~-5 black_concrete","/fill ~7 ~12 ~-5 ~8 ~12 ~-5 black_concrete","/fill ~15 ~12 ~-5 ~15 ~8 ~-5 black_concrete","/fill ~19 ~12 ~-5 ~19 ~9 ~-5 black_concrete","/fill ~23 ~12 ~-5 ~23 ~11 ~-5 black_concrete","/fill ~3 ~11 ~-5 ~3 ~11 ~-5 black_concrete","/fill ~5 ~11 ~-5 ~7 ~11 ~-5 black_concrete","/fill ~9 ~11 ~-5 ~9 ~10 ~-5 black_concrete","/fill ~12 ~11 ~-5 ~12 ~11 ~-5 black_concrete","/fill ~17 ~11 ~-5 ~17 ~11 ~-5 black_concrete","/fill ~20 ~11 ~-5 ~21 ~11 ~-5 black_concrete","/fill ~24 ~11 ~-5 ~24 ~10 ~-5 black_concrete","/fill ~5 ~10 ~-5 ~5 ~10 ~-5 black_concrete","/fill ~8 ~10 ~-5 ~8 ~6 ~-5 black_concrete","/fill ~16 ~10 ~-5 ~16 ~4 ~-5 black_concrete","/fill ~21 ~10 ~-5 ~22 ~10 ~-5 black_concrete","/fill ~6 ~9 ~-5 ~7 ~9 ~-5 black_concrete","/fill ~10 ~9 ~-5 ~10 ~9 ~-5 black_concrete","/fill ~13 ~9 ~-5 ~14 ~9 ~-5 black_concrete","/fill ~17 ~9 ~-5 ~18 ~9 ~-5 black_concrete","/fill ~20 ~9 ~-5 ~20 ~5 ~-5 black_concrete","/fill ~22 ~9 ~-5 ~22 ~9 ~-5 black_concrete","/fill ~9 ~8 ~-5 ~9 ~8 ~-5 black_concrete","/fill ~11 ~8 ~-5 ~11 ~6 ~-5 black_concrete","/fill ~0 ~7 ~-5 ~6 ~7 ~-5 black_concrete","/fill ~10 ~7 ~-5 ~10 ~5 ~-5 black_concrete","/fill ~12 ~7 ~-5 ~12 ~7 ~-5 black_concrete","/fill ~18 ~7 ~-5 ~18 ~7 ~-5 black_concrete","/fill ~24 ~7 ~-5 ~24 ~6 ~-5 black_concrete","/fill ~0 ~6 ~-5 ~0 ~1 ~-5 black_concrete","/fill ~6 ~6 ~-5 ~6 ~1 ~-5 black_concrete","/fill ~15 ~6 ~-5 ~15 ~4 ~-5 black_concrete","/fill ~2 ~5 ~-5 ~4 ~3 ~-5 black_concrete","/fill ~9 ~5 ~-5 ~9 ~3 ~-5 black_concrete","/fill ~13 ~5 ~-5 ~14 ~4 ~-5 black_concrete","/fill ~17 ~5 ~-5 ~19 ~5 ~-5 black_concrete","/fill ~22 ~5 ~-5 ~23 ~5 ~-5 black_concrete","/fill ~11 ~4 ~-5 ~11 ~4 ~-5 black_concrete","/fill ~17 ~4 ~-5 ~18 ~4 ~-5 black_concrete","/fill ~23 ~4 ~-5 ~24 ~4 ~-5 black_concrete","/fill ~17 ~3 ~-5 ~17 ~3 ~-5 black_concrete","/fill ~21 ~3 ~-5 ~22 ~3 ~-5 black_concrete","/fill ~24 ~3 ~-5 ~24 ~1 ~-5 black_concrete","/fill ~8 ~2 ~-5 ~8 ~1 ~-5 black_concrete","/fill ~12 ~2 ~-5 ~12 ~2 ~-5 black_concrete","/fill ~15 ~2 ~-5 ~16 ~2 ~-5 black_concrete","/fill ~19 ~2 ~-5 ~20 ~2 ~-5 black_concrete","/fill ~1 ~1 ~-5 ~5 ~1 ~-5 black_concrete","/fill ~16 ~1 ~-5 ~16 ~1 ~-5 black_concrete","/fill ~18 ~1 ~-5 ~18 ~1 ~-5 black_concrete","/fill ~21 ~1 ~-5 ~21 ~1 ~-5 black_concrete"]}

As recommended by the challenge text, I got the latest Minecraft Java Launcher and launched a world:

I followed the YouTube video and gave myself a command block, placed it with a button on it, and posted the mc86 initcode:

I clicked the button and received an enchanted book:

I followed the instructions and clicked each of the six links to generate my mc86 computer in my world:

Next, following the YouTube video, I pasted the challenge source code into the command block I created earlier and click the button:

This gave me a book and quill with 106 pages of instructions:

I then placed this book and quill into the Shulker Box:

I placed a button in the mc86 computer (as directed in the YouTube video) and and clicked it to run the challenge program:

This generated a giant QR code in my world:

After scanning the QR code, I got the following link:

https://gist.github.com/AndyNovo/30aa5b2665aa388dc81545f79ccb380f

This link gave me this code:

/give @p writable_book{pages:['/setblock ~5 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"bs",Color:4},{Pattern:"ls",Color:4},{Pattern:"rs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~6 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"rs",Color:4},{Pattern:"bs",Color:4},{Pattern:"ts",Color:4},{Pattern:"cbo",Color:11},{Pattern:"ls",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~7 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ts",Color:4},{Pattern:"bs",Color:4},{Pattern:"rs",Color:4},{Pattern:"ms",Color:11},{Pattern:"ls",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~8 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ts",Color:4},{Pattern:"cs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~9 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ms",Color:4},{Pattern:"rs",Color:11},{Pattern:"ts",Color:4},{Pattern:"ls",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~10 ~0 ~5 yellow_banner[rotation=0]{Patterns:[{Pattern:"cbo",Color:11},{Pattern:"vhr",Color:11},{Pattern:"bo",Color:11},{Pattern:"mr",Color:11}]}', '/setblock ~11 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"tt",Color:4},{Pattern:"tts",Color:11},{Pattern:"ls",Color:4},{Pattern:"rs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~12 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"tl",Color:4},{Pattern:"cs",Color:4},{Pattern:"bs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~13 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ls",Color:4},{Pattern:"tt",Color:11},{Pattern:"drs",Color:4},{Pattern:"rs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~14 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ts",Color:4},{Pattern:"bs",Color:4},{Pattern:"ms",Color:4},{Pattern:"rs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~15 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ts",Color:4},{Pattern:"bs",Color:4},{Pattern:"rs",Color:4},{Pattern:"ms",Color:11},{Pattern:"ls",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~16 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"hh",Color:4},{Pattern:"cs",Color:11},{Pattern:"ts",Color:4},{Pattern:"ls",Color:4},{Pattern:"drs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~17 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ls",Color:4},{Pattern:"hhb",Color:11},{Pattern:"ms",Color:4},{Pattern:"rs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~18 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ms",Color:4},{Pattern:"rs",Color:11},{Pattern:"ts",Color:4},{Pattern:"ls",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~19 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ts",Color:4},{Pattern:"cs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~20 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"bo",Color:4},{Pattern:"rud",Color:11},{Pattern:"ld",Color:11}]}', '/setblock ~21 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ls",Color:4},{Pattern:"hhb",Color:11},{Pattern:"ms",Color:4},{Pattern:"rs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~22 ~0 ~5 yellow_banner[rotation=0]{Patterns:[{Pattern:"mr",Color:11},{Pattern:"ms",Color:11},{Pattern:"drs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~23 ~0 ~5 yellow_banner[rotation=0]{Patterns:[{Pattern:"mr",Color:11},{Pattern:"ms",Color:11},{Pattern:"drs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~24 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ts",Color:4},{Pattern:"bs",Color:4},{Pattern:"ms",Color:4},{Pattern:"rs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~25 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"tt",Color:4},{Pattern:"tts",Color:11},{Pattern:"ls",Color:4},{Pattern:"rs",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~26 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"rs",Color:4},{Pattern:"bs",Color:4},{Pattern:"ts",Color:4},{Pattern:"cbo",Color:11},{Pattern:"ls",Color:4},{Pattern:"ms",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~27 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"bs",Color:4},{Pattern:"ls",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~28 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"drs",Color:4},{Pattern:"hhb",Color:11},{Pattern:"dls",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~29 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"bo",Color:4},{Pattern:"rud",Color:11},{Pattern:"ld",Color:11}]}', '/setblock ~30 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"drs",Color:4},{Pattern:"hhb",Color:11},{Pattern:"dls",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~31 ~0 ~5 blue_banner[rotation=0]{Patterns:[{Pattern:"ts",Color:4},{Pattern:"bs",Color:4},{Pattern:"rs",Color:4},{Pattern:"ls",Color:4},{Pattern:"bo",Color:11}]}', '/setblock ~32 ~0 ~5 yellow_banner[rotation=0]{Patterns:[{Pattern:"cbo",Color:11},{Pattern:"vh",Color:11},{Pattern:"mr",Color:11}]}']}

I then placed this code into my command block and clicked the button to run it:

This gave me another book and quill with 28 pages:

I placed it into the Shulker Box, added another button, and clicked it to run the code:

This generated the flag:

UDCTF{M1N3CR4FT_4SS3MBLY_Y0}