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

# Querier

> Verified writeups for the Querier machine of Hack The Box

# Querier

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> MSSQL macro + xp\_cmdshell → cached GPP cpassword → DA</p>

<div className="machine-meta">
  | ·                | ·                                                                                                                                                                |
  | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Operating system | Windows                                                                                                                                                          |
  | Difficulty       | Medium                                                                                                                                                           |
  | Vector           | <span className="vbadge vbadge-ad">Active Directory</span>                                                                                                       |
  | IP               | `10.10.10.125`                                                                                                                                                   |
  | Retirement date  | 2019-06-22                                                                                                                                                       |
  | Skills           | Macro Inspection (Olevba2) MSSQL Hash Stealing \[Net-NTLMv2] (xp\_dirtree) Abusing MSSQL (xp\_cmdshell) Cached GPP Files (Privilege Escalation) Active Directory |
</div>

## Writeups

| Language | Author                   | Format | Link                                                       |
| -------- | ------------------------ | ------ | ---------------------------------------------------------- |
| 🇪🇸 ES  | **S4vitar**              | Vídeo  | [Open](https://www.youtube.com/watch?v=hfzYnjBzW_k)        |
| 🇪🇸 ES  | **El Pingüino de Mario** | Vídeo  | [Open](https://www.youtube.com/watch?v=42xmXJJarbI)        |
| 🇬🇧 EN  | **0xdf**                 | Texto  | [Open](https://0xdf.gitlab.io/2019/06/22/htb-querier.html) |
| 🇬🇧 EN  | **IppSec**               | Vídeo  | [Open](https://www.youtube.com/watch?v=Auqt-NSB4SQ)        |

## Skill resources

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

| Skill            | Source     | Link                                                                                              |
| ---------------- | ---------- | ------------------------------------------------------------------------------------------------- |
| Active Directory | HackTricks | [Open](https://book.hacktricks.wiki/en/windows-hardening/active-directory-methodology/index.html) |

## Related skills worth mastering

Kerberoasting · AS-REP Roasting · DCSync · BloodHound · GetNPUsers (Impacket)

## If you liked this machine, try

* [Tentacle](/en/htb/machines/linux/dificil/tentacle) — Linux, Hard
* [Mantis](/en/htb/machines/windows/dificil/mantis) — Windows, Hard
* [Object](/en/htb/machines/windows/dificil/object) — Windows, Hard
* [Reel](/en/htb/machines/windows/dificil/reel) — Windows, Hard
* [Intelligence](/en/htb/machines/windows/medio/intelligence) — Windows, 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:querier" data-giscus-lang="en" />

*Last updated: 2026-07-13*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","headline":"Querier — HTB Writeup Index","name":"Querier","url":"https://rootea.es/en/htb/machines/windows/medio/querier","inLanguage":"en","datePublished":"2019-06-22","dateModified":"2026-07-13","about":{"@type":"Thing","name":"Hack The Box (HTB)"},"keywords":"Active Directory","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":"Querier","item":"https://rootea.es/en/htb/machines/windows/medio/querier"}]}`}
</script>
