Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

traitor

> 包管理
Open source

:arrow_up: :skull_and_crossbones: :fire: Automatic Linux privesc via exploitation of low-hanging fruit e.g. gtfobins, pwnkit, dirty pipe, +w docker.sock

7.2K stars0 likes2 views
WebsiteGitHub

About

:arrow_up: :skull_and_crossbones: :fire: Automatic Linux privesc via exploitation of low-hanging fruit e.g. gtfobins, pwnkit, dirty pipe, +w docker.sock

Traitor

Automatically exploit low-hanging fruit to pop a root shell. Linux privilege escalation made easy!

Traitor packages up a bunch of methods to exploit local misconfigurations and vulnerabilities in order to pop a root shell:

  • Nearly all of GTFOBins
  • Writeable docker.sock
  • CVE-2022-0847 (Dirty pipe)
  • CVE-2021-4034 (pwnkit)
  • CVE-2021-3560

It'll exploit most sudo privileges listed in GTFOBins to pop a root shell, as well as exploiting issues like a writable docker.sock, or the recent dirty pipe (CVE-2022-0847). More routes to root will be added over time too.

Usage

Run with no arguments to find potential vulnerabilities/misconfigurations which could allow privilege escalation. Add the -p flag if the current user password is known. The password will be requested if it's needed to analyse sudo permissions etc.

bash
traitor -p

Run with the -a/--any flag to find potential vulnerabilities, attempting to exploit each, stopping if a root shell is gained. Again, add the -p flag if the current user password is known.

bash
traitor -a -p

Run with the -e/--exploit flag to attempt to exploit a specific vulnerability and gain a root shell.

bash
traitor -p -e docker:writable-socket

Supported Platforms

Traitor will run on all Unix-like systems, though certain exploits will only function on certain systems.

Getting Traitor

Grab a binary from the releases page, or use go:

CGO_ENABLED=0 go get -u github.com/liamg/traitor/cmd/traitor

For go1.18:

CGO_ENABLED=0 go install github.com/liamg/traitor/cmd/traitor@latest

If the machine you're attempting privesc on cannot reach GitHub to download the binary, and you have no way to upload the binary to the machine over SCP/FTP etc., then you can try base64 encoding the binary on your machine, and echoing the base64 encoded string to | base64 -d > /tmp/traitor on the target machine, remembering to chmod +x it once it arrives.

In The News

  • 20/06/21: Console 58 - Awesome newsletter featuring tools and beta releases for developers.
  • 28/04/21: Intigriti Bug Bytes #120 - Recommended tools
  • 09/03/21: Hacker News thread

Issues· 22 open

View all issuesOpen on GitHub
  • #144

    Exploit failed: exec: "sh": executable file not found in $PATH

    Updated Sep 24, 2025
  • #136

    Dose it woke need root?!

    Updated Jul 26, 2024
  • #135

    Add support for CVE-2024-1086

    Updated Mar 28, 2024
  • #134

    The "powertop" tool can fully display the hidden process name and PID...

    Updated Mar 22, 2024
  • #102

    please don't let this project die

    Updated Jul 31, 2023
  • #91

    Exploit CVE-2022-0847 terminates with error

    Updated Mar 27, 2023
  • #101

    Add support for the new CVE-2022-2588

    Updated Nov 1, 2022
  • #99

    Add support for CVE-2016-5195 (Dirty COW)

    Updated Sep 1, 2022
  • #100

    Add support for CVE-2022-29799 & CVE-2022-29800 (Nimbuspwn)

    Updated Sep 1, 2022
  • #98

    Add support for CVE-2022-29582 and you will not believe what will happen next!

    enhancementUpdated Aug 8, 2022

> Tags

Gocve-2021-3560cve-2022-0847dirtypipeexploit

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 22, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image