Skip to content

πŸ” SudoKu β€” β€œRoot access is a numbers game”. Deleting prod shouldn’t be easier than solving a 4Γ—4.

License

Notifications You must be signed in to change notification settings

basedandco/sudoKu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


SudoKu
root privileges? solve the puzzle first

Build Made with Spite License: WTFPL


πŸ₯œ TL;DR

sudo β†’ sudoku β†’ root
A PAM module written in Go. When you try a privileged command it:

  1. Spawns a fresh Sudoku (4Γ—4, 6Γ—6, 9Γ—9, or πŸ”₯ β€œDiabolical” 16Γ—16).
  2. Opens a curses UI (or HTML5 fallback over SSH-kitty).
  3. Gives you 90 seconds to solve it.
  4. Logs success or failure to /var/log/auth.log with 🌢️ random insults.

No more fat-fingered rm -rf /. If you can’t Sudoku, you can’t sudo.


πŸ“Έ Demo

$ sudo reboot
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Welcome to SudoKu!          β”‚    ⏱ 01:30
β”‚  Fill the 9Γ—9 to earn root.  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Installation

⚠️ 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/sudo

Disable with:

sudo make disable

πŸ”§ Configuration

Edit /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

❓ FAQ

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.


🀝 Contributing

PRs welcomeβ€”especially:

  • New puzzle generators (Killer, Samurai, Nonograms?)
  • Better curses UX (mouse support, Vim bindings)
  • Translations of insults (need Klingon)

πŸͺͺ License

WTFPL β€” β€œDo What The F*** You Want Public License.” See LICENSE for the exciting legal doc.


☠️ Disclaimer

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.

About

πŸ” SudoKu β€” β€œRoot access is a numbers game”. Deleting prod shouldn’t be easier than solving a 4Γ—4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published