Skip to content

weddige/pam_honey.so

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pam_honey.so

pam_honey.so is a PAM module that denies any login attempt and logs the credentials in a text file. It is intended to set up a honeypot.

Setup

  1. Install build dependencies (Debian: gcc make libpam0g-dev, CentOS: gcc make pam-devel)
  2. make
  3. Copy pam_honey.so to the appropriate location (usually /lib/*/security/ or /lib64/security/)
  4. Configure PAM (usually in /etc/pam.d/sshd) to use pam_honey.so:
    auth       required     pam_honey.so /root/honey.txt
    
  5. Configure ssh to allow password auth
  6. tail -f /root/honey.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published