safebuffer/sam-the-admin
Exploiting CVE-2021-42278 and CVE-2021-42287 to impersonate DA from standard domain user observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1726
- days_rel: n/a
- days_push: 1515
- n_releases_24m: 0
Adoption not part of the score
1067 stars · 191 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python CLI exploit tool that chains CVE-2021-42278 and CVE-2021-42287 to impersonate a Domain Admin from a standard Active Directory domain user via sAMAccountName spoofing. It is a red-team weaponization of the s4u2self Kerberos technique.
Use cases
- escalate from standard domain user to domain admin in Active Directory
- exploit CVE-2021-42278 and CVE-2021-42287 during a penetration test
- demonstrate sAMAccountName spoofing in a lab environment
- test whether domain controllers are patched against the sAMAccountName spoofing chain
- red team assessment of Active Directory privilege escalation paths
When to choose
- you are a red teamer or pentester testing unpatched Active Directory domain controllers
- you need a ready-made weaponized exploit for CVE-2021-42278/42287
- you run Kali Linux and want a quick privilege escalation PoC
When to avoid
- your domain controllers are patched for CVE-2021-42278/42287
- you need a supported tool with a license or ongoing maintenance
- you are not on Kali Linux, since the tool is known to break elsewhere
- you want defensive or detection tooling rather than an offensive exploit
Facets
cli-tool · maturity maintenance
security penetration-testing cli security penetration-testing developer-tools python cli active-directory kerberos privilege-escalation redteam exploit cve-2021-42278 cve-2021-42287 s4u2self samaccountname-spoofing linux
1 source
- readme: https://github.com/safebuffer/sam-the-admin · fetched 2026-08-28 · cc02975ce133
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| safebuffer/sam-the-admin | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="safebuffer/sam-the-admin")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem