<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/htb-pingpong-opqdwphq6" -->

---
title: HTB: PingPong | daily.dev
description: PingPong is a Hack The Box Active Directory machine with two forests, ping.htb and pong.htb, joined by a bidirectional trust. Starting from assumed-breach...
canonical: https://daily.dev/posts/htb-pingpong-opqdwphq6
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: HTB: PingPong | daily.dev
og:description: PingPong is a Hack The Box Active Directory machine with two forests, ping.htb and pong.htb, joined by a bidirectional trust. Starting from assumed-breach...
og:url: https://daily.dev/posts/htb-pingpong-opqdwphq6
og:image: https://api.daily.dev/og/posts/oPQdWPhq6.png
og:image:alt: HTB: PingPong
og:image:width: 1200
og:image:height: 630
og:locale: en
---

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

# HTB: PingPong

**[0xdf hacks stuff](https://daily.dev/sources/0xdf)** · 80 min read · 0 upvotes · 0 comments

## Summary

PingPong is a Hack The Box Active Directory machine with two forests, ping.htb and pong.htb, joined by a bidirectional trust. Starting from assumed-breach credentials for c.roberts, the attack abuses ESC13 to enroll a certificate whose issuance policy maps to the TempWinRMAccess group, granting WinRM access on DC1. From there, a global group is converted to domain local to cross the trust and read a gMSA password, which is restricted to a constrained JEA endpoint escaped using script blocks to recover credentials from a PowerShell history file. Those credentials enable resource-based constrained delegation to reach MSSQL, and GodPotato compromises the second domain before ESC4 is abused back across the trust for Administrator on DC1.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://0xdf.gitlab.io/2026/11/21/htb-pingpong.html>

## Questions this post answers

### What is ESC13 and how does it let an attacker gain group privileges through a certificate?

ESC13 is an Active Directory Certificate Services privilege escalation where a certificate template's issuance policy is linked via an OID to a security group. Enrolling in that template produces a certificate whose Certificate Policies extension carries the linked OID; when used for PKINIT Kerberos authentication, the KDC follows the group link and adds that group's SID to the PAC in the issued TGT, without ever adding the user as an actual member.

_Developers hardening ADCS templates can track ESC13 and similar issuance-policy abuses on daily.dev._

### Why does certipy fail with a connection timeout to port 445 on an IP like 192.168.2.1 when targeting a domain controller by hostname?

This happens when the domain controller is dual-homed and DNS resolves its hostname to an internal IP that isn't reachable, such as a Hyper-V host alternating between an external and internal address. The fix is dropping the -ns nameserver argument so certipy uses the system resolver and /etc/hosts entry, or explicitly passing -dc-ip with the reachable external address instead of relying on DNS resolution.

_Anyone debugging flaky AD tooling against multi-homed hosts can find this kind of networking gotcha on daily.dev._

### How can a constrained PowerShell JEA endpoint configured with LanguageMode ConstrainedLanguage instead of NoLanguage be escaped?

A JEA endpoint set to RestrictedRemoteServer normally defaults to NoLanguage mode, blocking script blocks entirely, but explicitly overriding it to ConstrainedLanguage weakens that protection. Because ConstrainedLanguage still permits writing script blocks, an attacker can use them to break out of the restricted session and execute broader commands, such as reading credentials from a PowerShell history file.

_Teams locking down JEA endpoints can compare language mode settings and their risks on daily.dev._

## Similar posts on daily.dev

- [HTB: DarkZero](https://daily.dev/posts/htb-darkzero-fchwjkj1l) · 0xdf hacks stuff · 0 upvotes · 0 comments
- [HTB: Pirate](https://daily.dev/posts/htb-pirate-ot8mruofb) · 0xdf hacks stuff · 0 upvotes · 0 comments
- [ShadowGate Active Directory Lab Walkthrough \[HackSmarter\]](https://daily.dev/posts/shadowgate-active-directory-lab-walkthrough-hacksmarter--ovegbtw2c) · InfoSec Write-ups · 1 upvotes · 0 comments
- [HTB: Signed](https://daily.dev/posts/htb-signed-zkhb7xhv2) · 0xdf hacks stuff · 1 upvotes · 0 comments
- [HTB: Breach](https://daily.dev/posts/htb-breach-mzot368ee) · 0xdf hacks stuff · 1 upvotes · 0 comments

---

Tags: [#active-directory](https://daily.dev/tags/active-directory), [#kerberos](https://daily.dev/tags/kerberos)

[View this post on daily.dev](https://daily.dev/posts/htb-pingpong-opqdwphq6)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"HTB: PingPong","url":"https://daily.dev/posts/htb-pingpong-opqdwphq6","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/htb-pingpong-opqdwphq6"},"datePublished":"2026-11-21T15:02:16.261Z","dateModified":"2026-11-21T15:02:50.582Z","description":"PingPong is a Hack The Box Active Directory machine with two forests, ping.htb and pong.htb, joined by a bidirectional trust. Starting from assumed-breach...","image":"https://media.daily.dev/image/upload/s--CxzD6vbw--/f_auto/v1722860399/public/Placeholder%2005","thumbnailUrl":"https://media.daily.dev/image/upload/s--CxzD6vbw--/f_auto/v1722860399/public/Placeholder%2005","isAccessibleForFree":true,"articleSection":"0xdf hacks stuff","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"0xdf hacks stuff","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/16cdada70d5f4fac8b588c53bcf005ff","url":"https://daily.dev/sources/0xdf"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/htb-pingpong-opqdwphq6","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"active-directory,kerberos","timeRequired":"PT80M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"0xdf hacks stuff","item":"https://daily.dev/sources/0xdf"},{"@type":"ListItem","position":3,"name":"HTB: PingPong"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/htb-pingpong-opqdwphq6#faq","mainEntity":[{"@type":"Question","name":"What is ESC13 and how does it let an attacker gain group privileges through a certificate?","acceptedAnswer":{"@type":"Answer","text":"ESC13 is an Active Directory Certificate Services privilege escalation where a certificate template's issuance policy is linked via an OID to a security group. Enrolling in that template produces a certificate whose Certificate Policies extension carries the linked OID; when used for PKINIT Kerberos authentication, the KDC follows the group link and adds that group's SID to the PAC in the issued TGT, without ever adding the user as an actual member. Developers hardening ADCS templates can track ESC13 and similar issuance-policy abuses on daily.dev."}},{"@type":"Question","name":"Why does certipy fail with a connection timeout to port 445 on an IP like 192.168.2.1 when targeting a domain controller by hostname?","acceptedAnswer":{"@type":"Answer","text":"This happens when the domain controller is dual-homed and DNS resolves its hostname to an internal IP that isn't reachable, such as a Hyper-V host alternating between an external and internal address. The fix is dropping the -ns nameserver argument so certipy uses the system resolver and /etc/hosts entry, or explicitly passing -dc-ip with the reachable external address instead of relying on DNS resolution. Anyone debugging flaky AD tooling against multi-homed hosts can find this kind of networking gotcha on daily.dev."}},{"@type":"Question","name":"How can a constrained PowerShell JEA endpoint configured with LanguageMode ConstrainedLanguage instead of NoLanguage be escaped?","acceptedAnswer":{"@type":"Answer","text":"A JEA endpoint set to RestrictedRemoteServer normally defaults to NoLanguage mode, blocking script blocks entirely, but explicitly overriding it to ConstrainedLanguage weakens that protection. Because ConstrainedLanguage still permits writing script blocks, an attacker can use them to break out of the restricted session and execute broader commands, such as reading credentials from a PowerShell history file. Teams locking down JEA endpoints can compare language mode settings and their risks on daily.dev."}}]}
```

