# Assignment 5.1: Breaking into Kali

### Changing Boot Configuration:

1. Reboot Kali box and hit space to enter boot menu
2. Press ‘`e`’ on Kali GNU/Linux

<figure><img src="https://lh3.googleusercontent.com/OrgOhwCg7Y8Bl3MJ68Kxb269gdnvttb_wH-33HFZNNrm_CFzehs1PzG3YX6BqgN06Idqx8KBP5NEPXmUYreWgo6g915couOfoAwHI3ukZTZU2GAObCPl940OPfCUKc3HmDLyLEgGkw3NalxwRViG8ug" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh5.googleusercontent.com/PQlG10xu4CqG4pYbYtbp0Y2qxXJiPmB5QXeL0w_YrGWUmcULtXJpr0a66UWQqwiKxQUlCnyZaRtVZlph1xrgGgKHDH9L0KcBM5ojRE7cCjM9oHTJ26XoLiVZVOK0fQOZbWF0UVx_4TiI3_RwIQbiy3w" alt=""><figcaption></figcaption></figure>

3. Add `single init=/bin/bash` to the end of the linux line. This sets the linux box into single user mode in bash

<figure><img src="https://lh6.googleusercontent.com/xtg7TRwzB64-gUl7JxJzc0_wcwxAfWKRfH12OtttzRKmjaJuKnYiDshUbBdTYPriQW_psIBxxOW41sDtcfvbWEeWKZeSWW9UvTTzswNg7Tsq9QbptPxwHXWrGANNXF8tqFFXVsYTLF13ggashf9dAbU" alt=""><figcaption></figcaption></figure>

### Set root Passwd:

4. Press `ctrl+x`

<figure><img src="https://lh4.googleusercontent.com/k-HUDU2PJ8AZsWgrbQ3yPMfw-4oVxSo70JIVQR4UcwphNsTWBasl5C-M_SNp5BNWaeSpl8TQSsc6gmK-w49qhOTvbV6_4_t27YD6s9ULjVctFkHDy8b_qzwYqMpMbbeDydEGcwqn7NNcS-ZZo66ujMw" alt=""><figcaption></figcaption></figure>

5. Remount root

```
mount -rw -o remount /
passwd
```

<figure><img src="https://lh3.googleusercontent.com/2NjtJM-Saez3l9EhZ_2JsFXKqbNAITXxu27R4SuPYsqB7SUNVc-bw4xmrSnk_VJcNuOyYE3rOT22pGGlUGIiD-uTlzHS1fdcWtkxu7o3_Z0vRNFVvIjm2ZT9rSDIEqZDwt7X62NFoC20IBccyfiyXi4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/TzV0JAAOh62xc_opo91iHDnuoYY9wPaMmbm23IicDuX_UtDI-xq3aPuloKe3-gUKz8bH_bs-oJtZz6DdSC0_guuw9xeHaEQw0aTEayAZcMoE6WUJi4L7PcnS2Zn53veYALxMEaqj2W6GEz3ptj01O98" alt=""><figcaption></figcaption></figure>

### Login as root:

Now reboot

Login with root and the creds you set.

<figure><img src="https://lh3.googleusercontent.com/fzyMmJDxjca1ODgnQFyM7ehcPkL7YI9y6M-zZ28P-ZMURIVHfoIs_sn1O9Tzx5s63kNnHhIQW_Mr2iX6E-VI9kqtEyynIz6TuK-KkMCH5nbdlTmx5vrlIiJIT-05PPmezgxeaeBH8G4sZgzpyK06CUo" alt=""><figcaption></figcaption></figure>
