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

# ret2libc

> This room teaches basic return-oriented programming (ROP), exploitation of binaries and an ASLR bypass.

# ret2libc

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> TryHackMe · Walkthrough · Medium</p>

<div className="machine-meta">
  | ·             | ·                                                  |
  | ------------- | -------------------------------------------------- |
  | Platform      | TryHackMe                                          |
  | Type          | Walkthrough                                        |
  | Difficulty    | <span className="dbadge dbadge-easy">MEDIUM</span> |
  | Access        | 🟢 Free                                            |
  | Average time  | 90 min                                             |
  | Users         | 3.893                                              |
  | Official room | [Open](https://tryhackme.com/room/ret2libc)        |
</div>

## Description

This room teaches basic return-oriented programming (ROP), exploitation of binaries and an ASLR bypass.

## Solve the room

| Language | Author        | Format      | Link                                        |
| -------- | ------------- | ----------- | ------------------------------------------- |
| 🇬🇧 EN  | **TryHackMe** | Lab oficial | [Open](https://tryhackme.com/room/ret2libc) |

## Resources by skill

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

## Related skills

[Buffer Overflow (BoF / ROP)](/en/skills/buffer-overflow)

***

## Comments & tips

Solved this room a different way? Share it here — comments live in [GitHub Discussions](https://github.com/FFuson/HTB_Writeups/discussions).

<div className="rootea-giscus-wrap" data-giscus-term="thm:tryhackme-ret2libc" data-giscus-lang="en" />

*Last updated: 2026-05-09*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","name":"ret2libc","headline":"ret2libc — TryHackMe room index","url":"https://rootea.es/en/tryhackme/rooms/ret2libc","inLanguage":"en","about":[{"@type":"Thing","name":"TryHackMe"},{"@type":"Thing","name":"Walkthrough"}],"isPartOf":{"@type":"WebSite","name":"rootea.es","url":"https://rootea.es"},"author":{"@type":"Organization","name":"rootea.es"}}`}
</script>
