Skip to content

NHAS/dirtyfrag_check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Dirty Frag Checker

Dirty Frag is comprised of two vulnerabilities. One in esp ipsec, and one in the rxrpc functionality.

This repo splits them out into their own files, and renders them functionally harmless. These two exploits just prove that you can use the various exploits, rather than overwriting anything important like su

This will just choose /etc/motd, /etc/hostname or /etc/machine-id and attempt to use the exploit against them.

This is ideal for production workloads to check whether or not your mitigation has actually worked or not.

Building

gcc -O0 -Wall -o rxrpc rxrpc.c -lutil
gcc -O0 -Wall -o ipsec espipsec.c -lutil 

Usage

Both of these only take one argv arg, which is the file to write arbitrary (no shell code here) bytes to.

After, remember to do:

echo 1 > /proc/sys/vm/drop_caches 

To flush the page cache so the changes go away.

About

Check if your machine is vulnerable to the two exploits in dirtyfrag

Topics

Resources

Stars

Watchers

Forks

Languages