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

# Bastard

> Verified writeups for the Bastard machine of Hack The Box

# Bastard

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> Drupalgeddon2 RCE → MS15-051 / Juicy Potato → SYSTEM</p>

<div className="cve-row"><span className="cve-row-label">CVE / Bulletins:</span> <a className="cve-chip" href="https://learn.microsoft.com/en-us/security-updates/securitybulletins/2015/ms15-051" target="_blank" rel="noopener">MS15-051 ↗</a></div>

<div className="machine-meta">
  | ·                | ·                                                                                                                                                                                                                                                                                                                                                                                                           |
  | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Operating system | Windows                                                                                                                                                                                                                                                                                                                                                                                                     |
  | Difficulty       | Medium                                                                                                                                                                                                                                                                                                                                                                                                      |
  | Vector           | <span className="vbadge vbadge-web">Web</span>                                                                                                                                                                                                                                                                                                                                                              |
  | IP               | `10.10.10.9`                                                                                                                                                                                                                                                                                                                                                                                                |
  | Retirement date  | 2019-03-12                                                                                                                                                                                                                                                                                                                                                                                                  |
  | Skills           | Drupal Enumeration Drupal 7.X Module Services - Remote Code Execution \[SQL Injection] Drupal Admin Cookie Hijacking Drupal \< 7.58 / \< 8.3.9 / \< 8.4.6 / \< 8.5.1 - 'Drupalgeddon2' Remote Code Execution SA-CORE-2018-004 - 'Drupalgeddon3' Remote Code Execution Sherlock Enumeration (Privilege Escalation) MS15-051-KB3045171 - Kernel Exploitation \[Way 1] Abusing SeImpersonatePrivilege \[Way 2] |
</div>

## Writeups

| Language | Author      | Format | Link                                                       |
| -------- | ----------- | ------ | ---------------------------------------------------------- |
| 🇪🇸 ES  | **S4vitar** | Vídeo  | [Open](https://www.youtube.com/watch?v=VHeDNq4OrqI)        |
| 🇬🇧 EN  | **0xdf**    | Texto  | [Open](https://0xdf.gitlab.io/2019/03/12/htb-bastard.html) |
| 🇬🇧 EN  | **IppSec**  | Vídeo  | [Open](https://www.youtube.com/watch?v=lP-E5vmZNC0)        |

## Skill resources

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

| Skill                       | Source      | Link                                                                            |
| --------------------------- | ----------- | ------------------------------------------------------------------------------- |
| Remote Code Execution (RCE) | HackTricks  | [Open](https://book.hacktricks.wiki/en/pentesting-web/command-injection.html)   |
| SQL Injection               | HackTricks  | [Open](https://book.hacktricks.wiki/en/pentesting-web/sql-injection/index.html) |
| SQL Injection               | PortSwigger | [Open](https://portswigger.net/web-security/sql-injection)                      |

## Related skills worth mastering

Local File Inclusion (LFI) · Remote File Inclusion (RFI) · Shellshock (CVE-2014-6271) · Cross-Site Scripting (XSS)

## If you liked this machine, try

* [Europa](/en/htb/machines/linux/medio/europa) — Linux, Medium
* [Control](/en/htb/machines/windows/dificil/control) — Windows, Hard
* [Fighter](/en/htb/machines/windows/insano/fighter) — Windows, Insane
* [Toolbox](/en/htb/machines/windows/facil/toolbox) — Windows, Easy
* [Union](/en/htb/machines/linux/medio/union) — Linux, Medium

***

## 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:bastard" data-giscus-lang="en" />

*Last updated: 2026-06-07*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","headline":"Bastard — HTB Writeup Index","name":"Bastard","url":"https://rootea.es/en/htb/machines/windows/medio/bastard","inLanguage":"en","datePublished":"2019-03-12","dateModified":"2026-06-07","about":{"@type":"Thing","name":"Hack The Box (HTB)"},"keywords":"Remote Code Execution (RCE), SQL Injection, SQL Injection","isPartOf":{"@type":"WebSite","name":"rootea.es","url":"https://rootea.es"},"author":{"@type":"Organization","name":"rootea.es"},"proficiencyLevel":"Medio"}`}
</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":"Windows","item":"https://rootea.es/en/htb/machines/windows/medio/index"},{"@type":"ListItem","position":3,"name":"Medium","item":"https://rootea.es/en/htb/machines/windows/medio/index"},{"@type":"ListItem","position":4,"name":"Bastard","item":"https://rootea.es/en/htb/machines/windows/medio/bastard"}]}`}
</script>
