https://github.com/locus-x64/linux-kernel-env
This is an environment for linux kernel exploitation.
https://github.com/locus-x64/linux-kernel-env
environment exploitation linux-kernel
Last synced: 4 months ago
JSON representation
This is an environment for linux kernel exploitation.
- Host: GitHub
- URL: https://github.com/locus-x64/linux-kernel-env
- Owner: locus-x64
- Created: 2024-03-19T10:13:39.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-22T20:08:29.000Z (over 1 year ago)
- Last Synced: 2025-01-18T14:34:30.169Z (over 1 year ago)
- Topics: environment, exploitation, linux-kernel
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linux Kernel Exploitation Lab
This repository contains the materials for the Linux Kernel Exploitation Lab. Thanks to @deathNet123 for this lab.
It uses qemu with debian images to simulate a kernel environment.
## Setup
### Make debian image
```bash
./create-image.sh -d bookworm -f full
```
### Kernel Compilation
This script will automatically downlaod the specified kernel version and compile it with required debug symbols and configurations. For instance I have used 6.1.38 version of the kernel.
```bash
./build.sh 6.1.38 6.x
```
## Launching the VM
```bash
./startvm
```
## Interacting with the VM
To copy the files to the VM, you can use following command:
```bash
./copy2vm
```
And this will copy the file to the /home/user directory of the VM.
## Intstall 3rd party tool
By mounting the filesystem img file and then chroot into it.
Mount the filesystem
```bash
cd img && mkdir mountpt
sudo mount bookworm.img mountpt/
```
Chroot into the filesystem
```bash
cd mountpt
sudo chroot .
```
Install the dependencies, utilities or library
```bash
apt install
```