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

# Toby

> Verified writeups for the Toby machine of Hack The Box

# Toby

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> GOGS backdoor PHP → MySQL hash via Wireshark → epoch password crack</p>

<div className="machine-meta">
  | ·                | ·                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Operating system | Linux                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | Difficulty       | Insane                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | Vector           | <span className="vbadge vbadge-crypto">Crypto</span>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | IP               | `10.10.11.121`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | Retirement date  | 2022-04-16                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
  | Skills           | Abusing GOGS (Project Enumeration) Static Code Analysis (Finding a backdoor with php-malware-scanner) Code deofuscation Reverse shell through backdoor Setting up a SOCKS5 Proxy (Chisel/Proxychains) Database Enumeration (Accessing GOGS) Abusing API (Stealing an authentication hash in MYSQL through Wireshark) Playing with epoch time to generate a potential list of passwords Cracking Hashes PIVOTING Process Enumeration (pspy) Abusing cron job to obtain a private key Decrypting database passwords (AES Encryption) Abusing PAM (Ghidra Analysis) Getting the root password by abusing time Advanced persistence techniques |
</div>

## Writeups

| Language | Author      | Format | Link                                                    |
| -------- | ----------- | ------ | ------------------------------------------------------- |
| 🇪🇸 ES  | **S4vitar** | Vídeo  | [Open](https://www.youtube.com/watch?v=TLKid8-aI0E)     |
| 🇬🇧 EN  | **0xdf**    | Texto  | [Open](https://0xdf.gitlab.io/2022/04/16/htb-toby.html) |
| 🇬🇧 EN  | **IppSec**  | Vídeo  | [Open](https://www.youtube.com/watch?v=XROkuXKgeg8)     |

## Skill resources

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

| Skill                            | Source     | Link                                                                                         |
| -------------------------------- | ---------- | -------------------------------------------------------------------------------------------- |
| Cracking Hashes (hashcat / John) | HackTricks | [Open](https://book.hacktricks.wiki/en/generic-methodologies-and-resources/brute-force.html) |
| Port Forwarding / Pivoting       | HackTricks | [Open](https://book.hacktricks.wiki/en/generic-hacking/tunneling-and-port-forwarding.html)   |

## Related skills worth mastering

Brute Force / Rate-Limit Bypass

## If you liked this machine, try

* [Joker](/en/htb/machines/linux/dificil/joker) — Linux, Hard
* [Acute](/en/htb/machines/windows/dificil/acute) — Windows, Hard
* [Reddish](/en/htb/machines/linux/insano/reddish) — Linux, Insane
* [Writer](/en/htb/machines/linux/medio/writer) — Linux, Medium
* [Unbalanced](/en/htb/machines/linux/dificil/unbalanced) — 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:toby" data-giscus-lang="en" />

*Last updated: 2026-06-07*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","headline":"Toby — HTB Writeup Index","name":"Toby","url":"https://rootea.es/en/htb/machines/linux/insano/toby","inLanguage":"en","datePublished":"2022-04-16","dateModified":"2026-06-07","about":{"@type":"Thing","name":"Hack The Box (HTB)"},"keywords":"Cracking Hashes (hashcat / John), Port Forwarding / Pivoting","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":"Toby","item":"https://rootea.es/en/htb/machines/linux/insano/toby"}]}`}
</script>
