Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
lpe-toolkit — Multi-architecture Linux privilege escalation toolkit with 24 pre-built and runtime-compilable exploits. Auto-detects kernel version, filters patched exploits, tries each until root. | Kitploit
Tools/GitHubGitHub/portbuster1337/lpe-toolkit
Privilege EscalationVulnerability AnalysisExploitationPost-ExploitationCTFPenetration TestingRed Teaming
GitHubportbuster1337/lpe-toolkit

lpe-toolkit

Multi-architecture Linux privilege escalation toolkit with 24 pre-built and runtime-compilable exploits. Auto-detects kernel version, filters patched exploits, tries each until root.

View Repository
334491 month agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Linux LPE Toolkit

Multi-architecture privilege escalation toolkit with 24 exploits (amd64 pre-built; other architectures compiled via gcc at runtime). Supports amd64, arm64, 386, mips, mipsle, mips64, and mips64le. Detects kernel version, filters patched exploits, and tries each in order until root is obtained.

Quick Start

root@kitploit:~
# run directly (no gcc needed on target if pre-compiled binaries are embedded)
./lpe-toolkit

# dry-run: show exploit plan without executing
./lpe-toolkit --dry-run

# skip specific exploits
./lpe-toolkit --skip "dirtyfrag,dirtypipe"

# execute a command once root is achieved and show its output
./lpe-toolkit -c "id"

# silent automation: suppress all output except the command result
./lpe-toolkit -q -c "whoami"

# verbose output (includes exploit stdout/stderr)
./lpe-toolkit -v

Usage

FlagDescription
--dry-runShow which exploits are available/skipped
--just-buildResolve all exploits, print paths, exit (useful for packaging)
--skip LISTComma-separated exploit names to skip
-c, --command CMDExecute CMD as root instead of spawning an interactive shell
-q, --quietSuppress toolkit messages; only show root shell output or unsuccessful in getting root
-v, --verboseInclude exploit stdout/stderr in output (mutually exclusive with -q)

Note: -v and -q are mutually exclusive — the toolkit exits with an error if both are specified.

Exploits

Build from Source

root@kitploit:~
# native build (pre-compile C exploits then embed in Go binary)
make

# cross-compile for all architectures (native arch's C exploits only)
make build-all

# run directly from source (compile exploits on target at runtime)
make run-source

# clean build artifacts
make clean

Requirements: Go 1.21+, gcc, and cross-compilers for target architectures:

  • arm64: aarch64-linux-gnu-gcc
  • 386: i686-linux-gnu-gcc
  • mips: mips-linux-gnu-gcc
  • mipsle: mipsel-linux-gnu-gcc
  • mips64: mips64-linux-gnuabi64-gcc
  • mips64le: mips64el-linux-gnuabi64-gcc

Pre-Compiled Binary Packaging

The --just-build flag resolves all usable exploits and prints their paths. Use it to verify what will be available at runtime.

The pre-compiled binary archive for each release includes a statically linked Go binary with embedded C exploits. All exploits are pre-compiled for all architectures.

Architecture

  • toolkit.go: Core exploit definitions, kernel version parsing, binary resolution, GTFOBins sudo abuse handler, execCommandAsRoot() for non-interactive command execution, msg()/say() verbosity helpers
  • main.go: CLI entry point with flags (-c, -q, -v, --skip, --dry-run, --just-build) and signal handling
  • build-exploits.sh: Cross-compilation script for C exploits
  • exploits/: C source files and pre-compiled binaries embedded via //go:embed

Notable Changes

  • cve_2026_41651.c: Added Pack2TheRoot — raw D-Bus client (no libdbus) races PackageKit InstallFiles SIMULATE/NONE flags to trigger root-privileged postinst execution, drops setuid-root bash at /var/tmp/.suid_bash

  • parseKernelVersion fixed: added parseIntPrefix to handle -rcN suffixes when comparing kernel versions

  • bad_epoll.c rewritten with correct J-jaeyoung architecture: two epoll pairs, timerfd IRQ widening via 3000+ waiters, depth-3 oracle, acquire/release atomics on shared variables

  • All exploits (including leak-only/PoC-only) now spawn a root shell or execute the requested command

  • cve_2026_46333.c: Added try_passwd_root() — steals writable /etc/shadow fd from passwd, writes a known password hash, then spawns su -; falls back to leak-only methods

  • cve_2025_38352.c: Added dirtypipe-style splice() overwrite of → → spawns

New Exploits Added

  • peditcow.c (CVE-2026-46331): tc-pedit page-cache write primitive overwrites su ELF entry with shellcode. v5.18–v7.1-rc6. Unprivileged user+net namespace gives CAP_NET_ADMIN.
  • dirtyclone.c (CVE-2026-43503): DirtyClone Python port to C. ESP-in-UDP TEE netfilter target corrupts /etc/passwd. Self-contained AES-128-CBC implementation. v7.1-rc1–rc4.
  • bad_epoll.c (CVE-2026-46242): Bad Epoll close-vs-close race UAF. Target-specific: default offsets target lts-6.12.67 (kernelCTF). Customize OFF_* and PIVOT* defines for your kernel. Requires /proc/kallsyms (kptr_restrict=0). Run on an unpatched kernel — the fix (commit a6dc643c6931, adds ep_clear_and_put) was backported to many distros including Ubuntu 22.04's 6.8 HWE.
  • cve_2026_31694.c (CVE-2026-31694): FUSE readdir cache OOB write. Overflows 24 bytes into adjacent page-cache page to make /etc/passwd root passwordless. v6.15+. Requires fusermount3.
Download Tool
#NameTargetType
1Copy Fail CVE-2026-31431AF_ALG + splice page-cache writepre-built / compile
2Dirty Frag CVE-2026-43284xfrm-ESP/RxRPC page-cache writepre-built / compile
3Fragnesia CVE-2026-46300espintcp splice page-cache corruptionpre-built / compile
4DirtyDecrypt CVE-2026-31635rxgk pagecache writepre-built / compile
5Fragnesia v2skb_segment GRO coalescepre-built / compile
6PinTheftRDS zerocopy + io_uring page-cache overwritepre-built / compile
7Dirty Pipe CVE-2022-0847/etc/passwd page-cache overwritepre-built / compile
8CIFSwitch CVE-2026-46243cifs.spnego + NSS namespace confusionpre-built / compile
9PwnKit CVE-2021-4034pkexec environment escapepre-built / compile
10OverlayFS CVE-2021-3493user-ns mount escapepre-built / compile
11OvFS+FUSE CVE-2023-0386FUSE mount escapepre-built / compile
12Pack2TheRoot CVE-2026-41651PackageKit D-Bus race → setuid rootpre-built / compile
13Polkit D-Bus CVE-2021-3560accounts-daemon racepre-built / compile
14Docker Socketwritable /var/run/docker.sockpre-built / compile
15netfilter OOB CVE-2021-22555ip_tables corruptionpre-built / compile
16nft UAF2 CVE-2022-2586nftables chain UAFpre-built / compile
17pidfd race CVE-2026-46333ssh-keysign/shadow FD theftpre-built / compile
18CPU Timer Race CVE-2025-38352POSIX timer race (PoC)pre-built / compile
19nft UAF CVE-2024-1086Notselwyn multi-file nftablespre-built / compile
20PEdit COW CVE-2026-46331tc-pedit page-cache overwrite supre-built / compile
21DirtyClone CVE-2026-43503ESP-in-UDP TEE page-cache passwdpre-built / compile
22Bad Epoll CVE-2026-46242epoll close-vs-close race UAFpre-built / compile
23FUSE OOB CVE-2026-31694FUSE readdir cache OOB -> passwdpre-built / compile
24GTFOBins80+ passwordless sudo techniquesgo-handler
/etc/passwd
root::0:0:
su -
  • Command mode: Page-cache exploits use --corrupt-only to skip the interactive PTY bridge; execCommandAsRoot() pipes the command to su stdin for reliable non-interactive execution