Skip to content

Instantly share code, notes, and snippets.

@maxcai314
maxcai314 / bfmu_jit.c
Created December 29, 2025 00:01
Blazingly-Fast-Memory-Unsafe VuwCTF 2025 challenge
/*
* 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.
@maxcai314
maxcai314 / kiwiphone.c
Created December 28, 2025 23:51
Kiwiphone VuwCTF 2025 pwn challenge
/*
* 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.
@maxcai314
maxcai314 / spreadsheet_oop.txt
Last active May 4, 2025 14:42
Object-Oriented Programming in Google Sheets
=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),
@maxcai314
maxcai314 / spreadsheet_lambda_calculus.txt
Last active April 18, 2025 16:21
Pure Lambda Calculus in Google Sheets
=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)),
@maxcai314
maxcai314 / Quine.java
Created September 20, 2023 08:16
java-quine
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, ';');
}
}