SamPwn gives a rooted Samsung Tizen TV a small, persistent control service, a LAN root shell that you can switch off from the TV, a real telnet terminal on port 2525, and a dashboard with a one-shot ASCII-art show.
It is built for your own TV, on your own network. It is not a remote exploit and it does not bypass Developer Mode.
TV (root) Laptop
┌──────────────────────────────┐ ┌──────────────────────┐
│ sampwn.service │ │ install.sh │
│ ├─ control API 127.0.0.1:2324│◀── dashboard ──│ ├─ serves files │
│ ├─ root shell 0.0.0.0:2323 │ │ ├─ tizen install │
│ └─ telnet 0.0.0.0:2525 │ │ └─ root acquisition │
│ sampwn-ui.service │ └──────────────────────┘
│ ├─ SamPwn dashboard │
│ └─ TizenHBC (optional) │
│ /opt/etc/parseinfo.sh hook │
└──────────────────────────────┘
- Boot persistence without the laptop. A boot hook starts the daemon and the dashboard every time the TV powers on.
- Dashboard (
SamPwnapp) — tabbed control panel (Overview / Shell / Show / System) with shell status, root-shell on/off toggle, device status, a manual show trigger, and a clean exit to TV. Remote-friendly focus model works with the TV remote (arrow keys, Enter, Back). - Root shell on TCP 2323. Raw byte stream, no negotiation. Enabled by default; the dashboard can close it without rebooting. The setting survives reboots.
- Telnet terminal on TCP 2525. Telnet option handshake (ECHO, SGA, TTYPE,
NAWS), a PTY-backed bash, Ctrl-C/Ctrl-Z/job control, colours, and window
size. For interactive use:
telnet <tv-ip> 2525. - Localhost-only control API on 127.0.0.1:2324. The dashboard talks to the daemon there; the API is not exposed to the LAN.
- One-shot show (
pwned.html) plays once after the first ever root, then never automatically again. Press Back to return to the dashboard; replay it any time from the Show tab. - TizenHBC (optional). If the
vendor/tizenhbcsubmodule is checked out, the installer also installs the TizenHBC widget fromvendor/tizenhbc/dist/tizenhbc.wgt. - Installer and uninstaller with SHA-256 verification and a restore path for the original boot hook.
| Platform | Status | Notes |
|---|---|---|
| Tizen 6.0, Samsung 2021 AU7 series | Verified | Tested on GU43AU7179UXZG, build 21_KANTSU2E_UHD_BASIC, kernel 4.1.10 armv7l, .NET Core 3.1, Chromium 76. Root, boot hook, dashboard, show, telnet, and cold boot verified. |
| Other Samsung Tizen 6.0 TVs | Compatible if the probe passes | Requires an unpatched sdbd-tarlauncher, effective cap_setuid/cap_setgid, /usr/bin/dotnet 3.1 with cap_setgid/cap_sys_admin, and a tar that supports --to-command. Run the probe before installing. |
| Samsung Tizen 5.5 | Untested | May work if .NET Core 3.1 and the same launcher capabilities exist. Not validated by this project. |
| Samsung Tizen 6.5 / 7.0 / 8.0 / 9.0+ | Compatible if the probe passes | SamPwn ships the .NET 6 common payload (roll-forward Major) alongside common31, and auto-detects the TV's runtime. Newer firmware still needs the archive-launcher route and unpatched SDB capabilities; run the probe before installing. Not validated on every model. |
| Samsung Tizen 4.0 / 5.0 and older | Not supported | No tested .NET Core 3.1 payload path. |
| Non-Samsung Tizen TVs | Not supported | Different platform and packaging. |
"Verified" means tested end-to-end on the listed model. "Compatible if the probe passes" is a capability check, not a guarantee. See docs/COMPATIBILITY.md for the exact probe and the failure messages.
On the laptop:
- Linux with Bash,
curl,openssl,sha256sum, git, and Python 3.12+ - Tizen Studio
CLI, with
sdbandtizenonPATH(or setTIZEN_STUDIO) - A network route to the TV, and a laptop firewall that allows the TV to reach the installer's HTTP/callback ports
On the TV:
- Developer Mode enabled
- The laptop's IP allowed in the Developer Mode host list
- The sdb authorization prompt accepted on the TV
git clone --recurse-submodules https://github.com/HackSucks/SamPwn.git
cd SamPwn
./install.sh --tv 192.168.1.93If you already cloned without --recurse-submodules, run:
git submodule update --initThe installer will:
- connect with
sdb; - install the signed
SamPwn.wgtwidget; - optionally install the TizenHBC widget from
vendor/tizenhbc/dist/tizenhbc.wgt(skipped silently if the submodule is absent); - serve the daemon and boot hook over HTTP;
- acquire root and verify every downloaded file with SHA-256;
- back up the original
/opt/etc/parseinfo.shto/opt/etc/parseinfo.orig.sh; - install the boot hook and start the daemon;
- launch the dashboard.
Useful options:
--tv IP TV address (or TV_IP)
--host IP laptop address reachable from the TV (auto-detected)
--port N preferred HTTP port (default 8000; a free port is chosen if busy)
--shell on|off leave the LAN shells enabled or disabled (default on)
--no-show skip the one-time first-root intro
The root shell is intentionally left on by default so the installer can verify the result. Turn it off in the dashboard when you are done:
Dashboard → Root shell → Turn root shell OFF
The setting is stored in /opt/etc/sampwn/shell.state and is applied at boot.
From the laptop:
python3 tools/rootshell.py --host 192.168.1.93 'id'
# uid=0(root) gid=0(root) context="User"
python3 tools/rootshell.py --host 192.168.1.93 \
'curl -fsS http://127.0.0.1:2324/status'Expected status fields include "shell":true, "telnet":true, "hook":true,
and "widget":true when the shell is enabled and the installation is healthy:
{"ok":true,"shell":true,"telnet":true,"listening":true,"clients":0,
"port":2323,"telnet_port":2525,"telnet_clients":0,
"ip":"192.168.1.93","uptime":12.3,
"show_pending":false,"show_done":true,"hook":true,"widget":true,
"pid":1492,"version":"1.2.0"}To confirm boot persistence, power-cycle the TV (a full power cycle, not just
standby), wait for the dashboard to appear, then run the id check again.
This is real root. The LAN shell is a passwordless, unauthenticated root shell on port 2323; the telnet terminal is the same on port 2525 with a PTY. Anyone who can reach either port can control the TV.
- Keep the TV on a trusted VLAN or network.
- Leave the shells off unless you are using them.
- The control API is bound to
127.0.0.1and is not reachable from the LAN. - Do not expose ports 2323, 2525, or 2324 to the internet.
- Enable the kill switch (
touch /opt/etc/sampwn/disabled) before a reboot if you want the boot hook to skip all SamPwn payloads.
Read docs/SECURITY.md before installing.
./uninstall.sh --tv 192.168.1.93This restores /opt/etc/parseinfo.sh from parseinfo.orig.sh, removes the
transient units, stops the daemon and shell, and uninstalls the widget. Use
--keep-data to preserve /opt/etc/sampwn and --keep-widget to leave the
widget installed. See docs/UNINSTALL.md.
- Root acquisition uses the vendored
samsung-tv-rootarchive launcher (public domain). SamPwn patches it to detach the launcher from the sdb transport, so latersdbcommands are not blocked for the whole session. Both the .NET Core 3.1common31and the .NET 6commonpayloads are vendored undervendor/payloads/; the host auto-detects the TV's runtime and picks the right one. - Persistence replaces
/opt/etc/parseinfo.sh, whichAT-HUB.serviceruns as root at boot. The replacement is an unsigned gawk script: the TV's UEP check blocks unsigned shell/node scripts, but gawk is not patched. - Transient units are written to
/run/systemd/system/on each boot and started withsystemctl start --no-block./runis tmpfs, so nothing stale survives a reboot. - The daemon (
SampwnSrv.dll, .NET Core 3.1 or .NET 6+) runs as root, serves the dashboard API on127.0.0.1:2324, opens the raw LAN shell on0.0.0.0:2323and the telnet terminal on0.0.0.0:2525, each only while enabled. The per-runtime build is chosen at boot from the TV's active .NET runtime (net31/for 3.1,net60/for 6+). - The widget polls the API with small
XMLHttpRequestcalls and uses the TV remote through the Tizen input-device API.
There is no sdb shell, sdb root on, or sdb push dependency at runtime.
The installer uses sdb only for device discovery and the one-time injection.
More detail: docs/ARCHITECTURE.md.
app/ widget sources, show, audio, font, built SamPwn.wgt
sampwn-srv/ C# daemon source (.NET Core 3.1 + .NET 6+)
dist/srv/net31/ prebuilt daemon for .NET Core 3.1 TVs
dist/srv/net60/ prebuilt daemon for .NET 6+ TVs
boothook/parseinfo.sh boot hook (gawk)
tools/ rootshell.py and serve.py
vendor/ patched samsung-tv-root source, common31/common payloads, licenses
vendor/tizenhbc TizenHBC widget submodule (optional install)
docs/ install, compatibility, security, troubleshooting, uninstall
install.sh laptop installer
uninstall.sh laptop uninstaller
SHA256SUMS hashes of every committed release file
The daemon builds for both runtimes:
dotnet publish sampwn-srv/SampwnSrv.csproj -c Release -f netcoreapp3.1 -o dist/srv/net31/
dotnet publish sampwn-srv/SampwnSrv.csproj -c Release -f net6.0 -o dist/srv/net60/The widget is built with Tizen Studio and a TV signing profile:
cd app
tizen package -t wgt -s tv -- .Then install the new app/SamPwn.wgt. See docs/INSTALL.md.
- Root acquisition and payloads:
samsung-tv-rootby its authors, released to the public domain (Unlicense). SamPwn vendors a patched copy undervendor/. - Home channel:
TizenHBC— optional homebrew channel widget, bundled as thevendor/tizenhbcsubmodule. - Font: Adwaita Mono, Copyright 2015-2026 Renzhi Li, SIL Open Font License
1.1. A printable-ASCII subset is bundled as
app/sampwn-mono.ttf. - Show audio:
app/pwned.mp3is part of this project's show assets. Check that you have the right to redistribute it before publishing a fork.
See docs/THIRD_PARTY.md and LICENSE.
SamPwn is released under the MIT License. Vendored components keep their own licenses. This project is not affiliated with Samsung.