Skip to content
This repository has been archived by the owner on Oct 25, 2020. It is now read-only.

mtekman/PAM-curses-warning-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo has migrated to GitLab

https://gitlab.com/mtekman/PAM-curses-warning-formatter

(The copy here is archived. Please see the above link for the latest developments)

PAM Curses Warner

An interactive curses application that threatens to format your disks upon the three failed login attempts at boot via PAM, complete with customizable fail messages.

pic

Configure

Edit custom_fail_messages.txt to your own preferred text produced in order of each incorrect login attempt. Emphasis is given by surrounding words in brackets, and newlines are inserted at each adjacent string.

e.g "[This] is" "YOUR FINAL WARNING" "BURN ALL YOUR [CLASSIFIED DOCUMENTS]"

will resolve to:

This is
YOUR FINAL WARNING
BURN ALL YOUR CLASSIFIED DOCUMENTS


Install:

Run install.sh

which calls scripts/{buildInstallPamScript.sh, buildWarner.sh, buildOnAuth.sh}, then copies all configs over to root directories.

Specifically:

  • buildInstallPamScript.sh builds and copies pam_script.so into /lib/security/

  • buildWarner.sh builds and copies the interactive warner to configs/etc/security/warner

  • buildOnAuth.sh generates and inserts custom messages into configs/etc/security/onauth

Run:

Attempt to login from a tty (not vtty) and input incorrect credentials 3 times in a row.


NOTE: It does not actually format your machine, merely frightens unsuspecting users.

About

An example curses program tied in with PAM authentication that executes upon (maxtry) failure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published