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

# Sniper

> Writeups verificados de la máquina Sniper de Hack The Box

# Sniper

<p className="machine-summary"><span className="prompt"><code>\$ tldr</code></span> LFI + RFI vía SMB share → CHM payload privesc</p>

<div className="machine-meta">
  | ·                 | ·                                                                                                                                                                                                                                                                                                                                                                                   |
  | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Sistema operativo | Windows                                                                                                                                                                                                                                                                                                                                                                             |
  | Dificultad        | Medio                                                                                                                                                                                                                                                                                                                                                                               |
  | Vector            | <span className="vbadge vbadge-web">Web</span>                                                                                                                                                                                                                                                                                                                                      |
  | IP                | `10.10.10.151`                                                                                                                                                                                                                                                                                                                                                                      |
  | Fecha de retirada | 2020-04-09                                                                                                                                                                                                                                                                                                                                                                          |
  | Skills            | Local File Inclusion (LFI) Remote File Inclusion (RFI) \[Failed] Remote File Inclusion through SMB Server (net usershare technique) \[Success] Creating a webshell and achieving remote command execution \[RCE] Information Leakage \[User Pivoting] Playing with Chisel and ScriptBlocks using Invoke-Command Creating a malicious CHM file (Out-CHM.ps1) \[Privilege Escalation] |
</div>

## Writeups

| Idioma  | Autor       | Formato | Enlace                                                                |
| ------- | ----------- | ------- | --------------------------------------------------------------------- |
| 🇪🇸 ES | **S4vitar** | Vídeo   | [Abrir](https://www.youtube.com/watch?v=YQn3jAZeZAI)                  |
| 🇬🇧 EN | **0xdf**    | Texto   | [Abrir](https://0xdf.gitlab.io/2020/03/28/htb-sniper.html)            |
| 🇬🇧 EN | **0xdf**    | Texto   | [Abrir](https://0xdf.gitlab.io/2020/04/09/htb-sniper-beyondroot.html) |
| 🇬🇧 EN | **IppSec**  | Vídeo   | [Abrir](https://www.youtube.com/watch?v=k7gD4ufex9Q)                  |

## Recursos por skill

Documentación curada para cada técnica que aparece en la columna *Skills* de arriba. Fuentes: HackTricks, GTFOBins, PortSwigger, etc.

| Skill                       | Fuente               | Enlace                                                                                         |
| --------------------------- | -------------------- | ---------------------------------------------------------------------------------------------- |
| Remote File Inclusion (RFI) | HackTricks           | [Abrir](https://book.hacktricks.wiki/en/pentesting-web/file-inclusion/index.html)              |
| Local File Inclusion (LFI)  | PayloadsAllTheThings | [Abrir](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/File%20Inclusion)      |
| Information Leakage         | HackTricks           | [Abrir](https://book.hacktricks.wiki/en/pentesting-web/information-leak.html)                  |
| Port Forwarding / Pivoting  | HackTricks           | [Abrir](https://book.hacktricks.wiki/en/generic-hacking/tunneling-and-port-forwarding.html)    |
| SMB (139/445)               | HackTricks           | [Abrir](https://book.hacktricks.wiki/en/network-services-pentesting/pentesting-smb/index.html) |
| Remote Code Execution (RCE) | HackTricks           | [Abrir](https://book.hacktricks.wiki/en/pentesting-web/command-injection.html)                 |

## Skills relacionadas que conviene dominar

EternalBlue (MS17-010) · MS08-067 (NetAPI) · Shellshock (CVE-2014-6271)

## Si te gustó esta máquina, prueba

* [StreamIO](/htb/machines/windows/medio/streamio) — Windows, Medio
* [OpenSource](/htb/machines/linux/facil/opensource) — Linux, Fácil
* [TimeLapse](/htb/machines/windows/facil/timelapse) — Windows, Fácil
* [Unobtainium](/htb/machines/linux/dificil/unobtainium) — Linux, Difícil
* [Anubis](/htb/machines/windows/insano/anubis) — Windows, Insano

***

## Comentarios y truquillos

¿Algo no funcionó del writeup oficial? ¿Has encontrado un truco mejor? Compártelo aquí — los comentarios viven en [GitHub Discussions](https://github.com/FFuson/HTB_Writeups/discussions).

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

*Última actualización: 2026-06-07*

<script type="application/ld+json">
  {`{"@context":"https://schema.org","@type":"TechArticle","headline":"Sniper — HTB Writeup Index","name":"Sniper","url":"https://rootea.es/htb/machines/windows/medio/sniper","inLanguage":"es","datePublished":"2020-04-09","dateModified":"2026-06-07","about":{"@type":"Thing","name":"Hack The Box (HTB)"},"keywords":"Remote File Inclusion (RFI), Local File Inclusion (LFI), Information Leakage, Port Forwarding / Pivoting, SMB (139/445), Remote Code Execution (RCE)","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":"Inicio","item":"https://rootea.es"},{"@type":"ListItem","position":2,"name":"Windows","item":"https://rootea.es/htb/machines/windows/medio/index"},{"@type":"ListItem","position":3,"name":"Medio","item":"https://rootea.es/htb/machines/windows/medio/index"},{"@type":"ListItem","position":4,"name":"Sniper","item":"https://rootea.es/htb/machines/windows/medio/sniper"}]}`}
</script>
