Share
## https://sploitus.com/exploit?id=6A8F2158-BF2F-5B32-B60A-2F2220B78CBA
# KernelPWNED - Kernel Exploit Suggester

A lightweight, fast kernel exploit suggester written in C++ that automatically detects if your Linux kernel is vulnerable to known privilege escalation exploits.

## Overview

KernelPWNED scans your current Linux kernel version and cross-references it against a database of known kernel vulnerabilities. It's designed for penetration testers, security researchers, and system administrators who need to quickly assess kernel vulnerability status.

## Features

- โœ… **Fast Detection** - C++ implementation provides near-instant vulnerability scanning
- โœ… **Multiple Exploits** - Checks for 4 major kernel vulnerabilities
- โœ… **PoC Links** - Direct GitHub links to proof-of-concept exploits
- โœ… **Color-Coded Output** - Easy-to-read terminal output with ANSI colors
- โœ… **Distribution Detection** - Identifies your Linux distribution
- โœ… **No Dependencies** - Single static binary, no external libraries required

## Vulnerabilities Detected

### 1. Dirty COW (CVE-2016-5195)
- **Affected Kernels:** 2.0.0 - 4.8.3
- **Type:** Race condition in copy-on-write mechanism
- **Impact:** Privilege escalation to root
- **PoC:** https://github.com/firefart/dirtycow

### 2. Dirty Pipe (CVE-2022-0847)
- **Affected Kernels:** 5.8.0 - 5.16.10
- **Type:** Write to arbitrary read-only files
- **Impact:** Privilege escalation to root
- **PoC:** https://github.com/Al1ex/CVE-2022-0847

### 3. GameOver(lay) (CVE-2023-32629)
- **Affected Kernels:** 6.2.0, 5.19.0, 5.4.0 (Ubuntu-specific)
- **Type:** Overlay filesystem vulnerability
- **Impact:** Privilege escalation to root
- **PoC:** https://github.com/g1vi/CVE-2023-2640-CVE-2023-32629

### 4. CVE-2024-1086
- **Affected Kernels:** 3.15.0 - 6.8.0
- **Type:** Use-after-free in netfilter subsystem
- **Impact:** Privilege escalation to root
- **PoC:** https://github.com/Notselwyn/CVE-2024-1086

## Requirements

- **Operating System:** Linux (any distribution)
- **Compiler:** g++ or clang++ with C++17 support
- **Build Tool:** GNU Make
- **Architecture:** x86_64, ARM64, or any Linux-supported architecture

## Installation

### Quick Build

```bash
# Navigate to the project directory
cd kernelpwned

# Build the project
make

# The executable will be at bin/kernelpwned
```

### System-Wide Installation

```bash
# Build and install to /usr/local/bin (requires sudo)
make
sudo make install

# Now you can run from anywhere
kernelpwned
```

### Uninstallation

```bash
sudo make uninstall
```

## Usage

### Basic Usage

```bash
# Run from build directory
./bin/kernelpwned

# Or if installed system-wide
kernelpwned
```

## License

This tool is provided for educational and security research purposes.