f80a53288802aaf0510815a3956c096224f7b541
SAS Project 2026 - Program
Building
Required dependencies:
riscv64-unknown-elftoolchainriscv64-unknown-elf-gcc
gcc- Python 3
- 7z (7-zip CLI)
make
Getting the flag
Compiling with make will print the correct flag to stderr, e.g.:
[Codegen] Generated Flag: ctf{3P1WBAldo2PxYZtJIoadV_NnL1nueJAbVDtMiJhY0vQ}
Configuration
Some challenge parameters can be set with environment variables.
The provided .env.example file contains a sample configuration.
FLAG_LEN: Number, the length of the flagFLAG_FORMAT: String, containing the constantFLAG_GOES_HEREto be replaced by the flagFLAG_SEED: String, the seed used to generate the flag, orfalseif it should be randomENCRYPTOR_VENDOR_ID: String, overwrite CPU vendor id. Will use system information if unsetENCRYPTOR_MODEL_NAME: String, overwrite CPU model name. Will use system information if unsetENCRYPTOR_OS_VERSION: String, overwrite OS version. Will use system information if unsetENCRYPTOR_MEM_TOTAL: String, overwrite total memory (in kB). Will use system information if unset
Running the challenge
- The built binary is at
build/main[.exe] - The binary together with the encrypted license file is packaged in
build/challenge.zip
Description
Languages
C
80.9%
Python
10.8%
Makefile
7.9%
Dockerfile
0.4%