simple-pam | Basic PAM module and test application
kandi X-RAY | simple-pam Summary
kandi X-RAY | simple-pam Summary
This is just a simple PAM module and test code for it. There really isn’t much to it, but it does make a good example of how to get started with a PAM module.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of simple-pam
simple-pam Key Features
simple-pam Examples and Code Snippets
Community Discussions
Trending Discussions on simple-pam
QUESTION
I am trying to understand how PAM works by creating an SSH backdoor. Following this example https://github.com/beatgammit/simple-pam I already know how to make a functional PAM module, but I want to read a hardcode token from the CIN. I tried the following:
...ANSWER
Answered 2018-Oct-18 at 08:22You cannot use scanf()
to read a value from the user, since stdin is not passed to the user. You have to use ssh keyboard-interactive authentication with the appropriate functions. This is supported by the pam_conv (PAM conversation) functions.
The manpage _man 3 pam_conv_ describes the interface. It works basically like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install simple-pam
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page