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
| /* | |
| * hashmap.c | |
| * | |
| * Template implementation of a typed hash map. | |
| * This file cannot be compiled as standalone source code. | |
| * Define the following macros before including this file: | |
| * | |
| * HASHMAP_TYPENAME Prefix used for the generated names. | |
| * HASHMAP_NUM_SLOTS Number of hash-map slots. | |
| * HASHMAP_KEY_TYPE Type stored as a key. |
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
| /* | |
| * This challenge was published for VuwCTF 2026. | |
| * Event Organizers: https://vuwctf.com/ | |
| * Author: maxster (Max Cai) | |
| * | |
| * User brief: | |
| * The Moose Software Foundation have released their new, free, open-source calculator utility! | |
| * JIT compiles to become certified blazingly fast and moose-safe. | |
| * Note: this code was implemented using the [chasm](https://github.com/aqilc/chasm) library, | |
| * but its implementation details are not necessary to solve this challenge. |
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 java.io.*; | |
| import java.net.*; | |
| import java.util.Scanner; | |
| public class Client { | |
| public static void main(String[] args) throws IOException { | |
| String ip = "10.0.0.20"; // obtain using server's ipconfig (windows), ifconfig (mac, linux) | |
| int port = 1234; // obtain the server's port | |
| var socket = new Socket(ip, port); |
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
| /* | |
| * This challenge was published for VuwCTF 2025. | |
| * Challenge Name: blazingly-fast-memory-unsafe | |
| * User Brief: Is this modern, blazingly fast, memory-unsafe JIT-compiled language the future of programming? | |
| * Event Organizers: https://vuwctf.com/ | |
| * Author: maxster (Max Cai) | |
| * | |
| * This source code file, along with the compiled binary, was provided to players. | |
| * Players were expected to pwn a remote instance running the same program, | |
| * which contained the flag in the filesystem. |
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
| /* | |
| * This challenge was published for VuwCTF 2025. | |
| * Event Organizers: https://vuwctf.com/ | |
| * Author: maxster (Max Cai) | |
| * | |
| * This file, along with the binary ELF patched to | |
| * use the specific libc.so.6 and ld-linux-x86-64.so.2, | |
| * was provided to participants during the competition. | |
| * Players were provided access to a server hosting this | |
| * program, which contained the flag in the filesystem. |
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
| =LET( | |
| BEGIN_LIB_OOP, "smalltalk-style message handler framework", | |
| message_match, LAMBDA(expected, LAMBDA(actual, | |
| IFERROR((actual = expected), FALSE) | |
| )), | |
| is_nil, LAMBDA(obj, IFERROR(obj("is_nil__"), FALSE)), | |
| as_err_string, LAMBDA(message, fallback_message, | |
| IFERROR( | |
| CONCAT("", message), |
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
| =LET( | |
| BEGIN_LIB_BOOL, "standard boolean library", | |
| identity_l, LAMBDA(x, x), | |
| true_l, LAMBDA(a, LAMBDA(b, a)), | |
| false_l, LAMBDA(a, LAMBDA(b, b)), | |
| not_l, LAMBDA(a, a(false_l)(true_l)), | |
| and_l, LAMBDA(a, LAMBDA(b, a(b)(false_l))), | |
| bool_to_literal, LAMBDA(b, b(TRUE)(FALSE)), | |
| literal_to_bool, LAMBDA(a, IF(a, true_l, false_l)), |
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
| public class Quine { | |
| public static void main(String[] args) { | |
| // todo: make it print all the other stuff such as the psvm signature, etc. | |
| String s = "String s = %s;System.out.printf(s, (char) 34 + s + (char) 34, ';')%s";System.out.printf(s, (char) 34 + s + (char) 34, ';'); | |
| } | |
| } |