
SudoKu
root privileges? solve the puzzle first
sudo β sudoku β root
A PAM module written in Go. When you try a privileged command it:
- Spawns a fresh Sudoku (4Γ4, 6Γ6, 9Γ9, or π₯ βDiabolicalβ 16Γ16).
- Opens a curses UI (or HTML5 fallback over SSH-kitty).
- Gives you 90 seconds to solve it.
- Logs success or failure to
/var/log/auth.logwith πΆοΈ random insults.
No more fat-fingered rm -rf /. If you canβt Sudoku, you canβt sudo.
$ sudo reboot
ββββββββββββββββββββββββββββββββ
β Welcome to SudoKu! β β± 01:30
β Fill the 9Γ9 to earn root. β
ββββββββββββββββββββββββββββββββ
β οΈ Tested on Arch π¦ (of course) and Ubuntu. Your distro mileage may vary.
git clone https://github.com/basedandco/sudoku.git
cd sudoku
make && sudo make install # drops pam_sudoku.so into /lib/security
sudo make enable # appends "auth required pam_sudoku.so" into /etc/pam.d/sudoDisable with:
sudo make disableEdit /etc/sudoku.conf:
| Key | Default | Note |
|---|---|---|
GRID_SIZE |
9 | 4, 6, 9, 16 (only if you dare) |
TIME_LIMIT |
90 | seconds |
INSULTS |
1 | 0 = polite mode π€’ |
LOCKOUT |
3 | fails before n-minute ban |
SHOW_TIMER |
1 | display countdown in UI |
Q: I got locked out of prod at 3 AM. Now what? A: Maybe finish the puzzle next time, champ.
Q: Security risk? A: The puzzle seed is cryptographically random; the only risk is to your ego.
PRs welcomeβespecially:
- New puzzle generators (Killer, Samurai, Nonograms?)
- Better curses UX (mouse support, Vim bindings)
- Translations of insults (need Klingon)
WTFPL β βDo What The F*** You Want Public License.β See LICENSE for the exciting legal doc.
SudoKu is comedy software. If you brick your CI/CD pipeline because you couldnβt find a hidden 7, thatβs on you. Use in prod only if your sense of humor has root.
Β© 2025 Based & Co. Ltd. Β· Go solve some puzzles.