{"id":21481861,"url":"https://github.com/pboardman/pam_printpw","last_synced_at":"2026-02-07T22:02:49.916Z","repository":{"id":104929132,"uuid":"77965228","full_name":"pboardman/pam_printpw","owner":"pboardman","description":"pam module for printing cleartext password in log","archived":false,"fork":false,"pushed_at":"2017-01-04T01:13:11.000Z","size":7,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T21:22:29.080Z","etag":null,"topics":["pam","password","ssh"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pboardman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-04T00:31:31.000Z","updated_at":"2023-10-31T18:46:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad56041f-13ef-42d0-9a51-d1538321d8e1","html_url":"https://github.com/pboardman/pam_printpw","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboardman%2Fpam_printpw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboardman%2Fpam_printpw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboardman%2Fpam_printpw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboardman%2Fpam_printpw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pboardman","download_url":"https://codeload.github.com/pboardman/pam_printpw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250360248,"owners_count":21417717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pam","password","ssh"],"created_at":"2024-11-23T12:28:33.599Z","updated_at":"2026-02-07T22:02:49.903Z","avatar_url":"https://github.com/pboardman.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pam_printpw\n\nLike the name suggest, pam_printpw is a very simple pam module that will print a\nuser username and password in a log file when the user attempt to login.\n\n**Obviously this is very insecure, use at your own risk**\n\n## Why?\n\nI made this module to check the username/password combinations tried by bots\nendlessly trying to bruteforce every ssh ports they can find on the internet.\nBut there are probably other fun ways to use it.\n\n## Installation\n\nThis was only tested on Fedora 25 for now but it should be similar for other\nlinux distributions.\n\n- Run ` make all ` to compile the module\n- Copy the module `pam_printpw.so` to /lib64/security\n\nTo use the module with your ssh server add those two lines **at the top** of\n`/etc/pam.d/sshd`:\n\n```\nauth       required     pam_unix.so\nauth       required     pam_printpw.so\n```\n\n## Testing it\n\nYou shouldn't have to restart anything after the installation.\n\nTo test if it works:\n\n- ssh to localhost (if you installed it locally) with `ssh youruser@127.0.0.1`\n- check the ssh logs to see if your username + password is there: `journalctl -f -u sshd`\n\nYou should see something like this:\n![pam_log](screenshot/pam_log.png)\n\n## Notes\n\n- It will print the password regardless of whether it's the good or wrong password\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpboardman%2Fpam_printpw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpboardman%2Fpam_printpw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpboardman%2Fpam_printpw/lists"}