We are given a game written in Python. Once again, the source code is given because this is the first and easiest challenge, so let's dig into it directly.
For the first challenge, we are given a game written in Python. Luckily the source code is also given, so let's dig into the source code directly.
The source code is not that long, and quickly we noticed the GenerateFlagText function. If we read this line closely:
return ''.join([chr(ord(c) ^ key) for c in encoded])
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import itertools | |
| from collections import defaultdict | |
| target_byte_size = 4 | |
| target_size = 1 << (target_byte_size * 8) | |
| usable_bytes = (0x05, 0x50, 0xc3) | |
| reverse_mapping = defaultdict(list) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/tls" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "net" | |
| "net/http" | |
| "sync" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <unordered_map> | |
| #include <forward_list> | |
| #include <z3++.h> | |
| int width, height; | |
| std::vector<bool> walls; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| var mem = map[string]uint8{} | |
| var str string | |
| func MEMORY(address uint8) byte { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "math" | |
| "github.com/youpy/go-wav" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| "math/rand" | |
| "reflect" | |
| "time" | |
| ) |

