sus-calculator Code
Sus Calculator is a Windows desktop calculator with a hidden VM.
Brought to you by:
namyeluska

Sus Calculator is a Windows desktop calculator with a hidden VM trigger. It behaves like a standard calculator, but when a secret expression is entered, it launches a QEMU virtual machine using settings from a JSON config file. A second secret expression opens a modern configuration GUI.
What Is This Program?
Default Operations (What It Does)
+, -, *, /, %sqrt, x^2, 1/x, +/-, CE, C, Back, =Configuration Paths
vm-config.jsoncalculator_files\qemu-system-x86_64.exe and calculator_files\qemu-img.execalculator_files\your-os.isovm\sus.qcow2log.txtvm-config.json is loaded from the current working directory first. If not found, it falls back to the executable directory.
Which VM Platform Does It Use?
Key Features
secretTrigger.expressionconfigEditorTrigger.expressionqcow2) created on first runlog.txtDebugFlagsHow To Run From Source
calculator_files\.bash
dotnet runHow The Program Works
=, the engine checks the result against hidden trigger expressions.vm-config.json.log.txt, and a persistent disk is used for the VM.Default Hidden Triggers
404 + 404 = opens the configuration GUI.69 + 69 = launches the VM.Configuration Example
{
"SecretTrigger": { "Expression": "1337+1" },
"ConfigEditorTrigger": { "Expression": "404+404" },
"Qemu": {
"QemuPath": "calculator_files\\qemu-system-x86_64.exe",
"QemuImgPath": "calculator_files\\qemu-img.exe",
"IsoPath": "calculator_files\\your-os.iso",
"DiskPath": "vm\\sus.qcow2",
"DiskSizeGB": 40,
"MemoryMB": 4096,
"Cpus": 2,
"BootOrder": "cd",
"Accelerator": "",
"LogPath": "log.txt",
"DebugFlags": "",
"ExtraArgs": [
"-device",
"virtio-net-pci,netdev=net0",
"-netdev",
"user,id=net0"
]
}
}
Publishing (Windows Only)
dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true
The published output will include:
SusCalculator.exevm-config.jsoncalculator_files\ (with QEMU binaries and optional ISO)How Other Developers Can Extend It
CalculatorEngine.csCalculatorForm.csVmLauncher.csConfigEditorForm.csConfigLoader.csNotes
Accelerator to whpx in the config.