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, ';'); | |
| } | |
| } |