Simon Willison 8/24/2026

Your executable is a SQLite database

Read Original

This article discusses a clever Linux technique that turns a SQLite database file into an executable binary. By setting the SQLite file's application ID to 'SELF' and arranging ELF components into SQLite tables, a custom interpreter can execute the file. The article also explains how to use binfmt_misc to register the pattern for automatic execution, with an example for NixOS and a generic registration command.

Your executable is a SQLite database

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet