> ## Documentation Index
> Fetch the complete documentation index at: https://rootea.es/llms.txt
> Use this file to discover all available pages before exploring further.

# Jail

> Verified writeups for the Jail machine of Hack The Box

# Jail

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> BOF socket reuse → NFSv3 → sudo rvim → RAR + RSA crypto</p>

<div className="machine-meta">
  | ·                | ·                                                                                                                                                                                                                                             |
  | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Operating system | Linux                                                                                                                                                                                                                                         |
  | Difficulty       | Insane                                                                                                                                                                                                                                        |
  | Vector           | <span className="vbadge vbadge-binary-exploitation">Binary</span>                                                                                                                                                                             |
  | IP               | `10.10.10.34`                                                                                                                                                                                                                                 |
  | Retirement date  | 2022-05-23                                                                                                                                                                                                                                    |
  | Skills           | Code Analysis Binary Exploitation Buffer Overflow x32 - Socket Re-Use Shellcode Technique GDB Tips NFSv3 Privesc Abusing sudoers privilege (rvim command) Cracking RAR file Crypto Challenge (Playing with RsaCtfTool to get the private key) |
</div>

## Writeups

| Language | Author      | Format | Link                                                    |
| -------- | ----------- | ------ | ------------------------------------------------------- |
| 🇪🇸 ES  | **S4vitar** | Vídeo  | [Open](https://www.youtube.com/watch?v=lCrQLzE-CjI)     |
| 🇬🇧 EN  | **0xdf**    | Texto  | [Open](https://0xdf.gitlab.io/2022/05/23/htb-jail.html) |
| 🇬🇧 EN  | **IppSec**  | Vídeo  | [Open](https://www.youtube.com/watch?v=80-73OYcrrk)     |

## Skill resources

Curated documentation for each technique listed in the *Skills* column above. Sources: HackTricks, GTFOBins, PortSwigger, etc.

| Skill                       | Source     | Link                                                                                  |
| --------------------------- | ---------- | ------------------------------------------------------------------------------------- |
| Buffer Overflow (BoF / ROP) | HackTricks | [Open](https://book.hacktricks.wiki/en/binary-exploitation/stack-overflow/index.html) |

## If you liked this machine, try

* [October](/en/htb/machines/linux/medio/october) — Linux, Medium
* [Chatterbox](/en/htb/machines/windows/medio/chatterbox) — Windows, Medium
* [Safe](/en/htb/machines/linux/facil/safe) — Linux, Easy
* [Buff](/en/htb/machines/windows/facil/buff) — Windows, Easy
* [Ellingson](/en/htb/machines/linux/dificil/ellingson) — Linux, Hard

***

## Comments & tips

Did the official writeup not work? Found a smarter trick? Share it here — comments live in [GitHub Discussions](https://github.com/FFuson/HTB_Writeups/discussions).

<div className="rootea-giscus-wrap" data-giscus-term="machine:jail" data-giscus-lang="en" />

*Last updated: 2026-06-07*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","headline":"Jail — HTB Writeup Index","name":"Jail","url":"https://rootea.es/en/htb/machines/linux/insano/jail","inLanguage":"en","datePublished":"2022-05-23","dateModified":"2026-06-07","about":{"@type":"Thing","name":"Hack The Box (HTB)"},"keywords":"Buffer Overflow (BoF / ROP)","isPartOf":{"@type":"WebSite","name":"rootea.es","url":"https://rootea.es"},"author":{"@type":"Organization","name":"rootea.es"},"proficiencyLevel":"Insano"}`}
</script>

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://rootea.es/en"},{"@type":"ListItem","position":2,"name":"Linux","item":"https://rootea.es/en/htb/machines/linux/insano/index"},{"@type":"ListItem","position":3,"name":"Insane","item":"https://rootea.es/en/htb/machines/linux/insano/index"},{"@type":"ListItem","position":4,"name":"Jail","item":"https://rootea.es/en/htb/machines/linux/insano/jail"}]}`}
</script>
