rapid7/metasploit-framework

View on GitHub
external/source/exploits/CVE-2021-3490/Linux_LPE_eBPF_CVE-2021-3490/Makefile

Summary

Maintainability
Test Coverage
CC=gcc
LPE =lpe

BIN = bin/
INC = include/

CMP = -o $(BIN)exploit.bin -I $(INC) exploit.c bpf.c kmem_search.c

groovy:
    $(CC) -DGROOVY $(CMP)

hirsute:
    $(CC) -DHIRSUTE $(CMP)

FEDORA_KERNEL_5_7:
    $(CC) -DFEDORA_KERNEL_5_7 $(CMP)

FEDORA_KERNEL_5_8:
    $(CC) -DFEDORA_KERNEL_5_8 $(CMP)

FEDORA_KERNEL_5_9:
    $(CC) -DFEDORA_KERNEL_5_9 $(CMP)

FEDORA_KERNEL_5_10:
    $(CC) -DFEDORA_KERNEL_5_10 $(CMP)

FEDORA_KERNEL_5_11:
    $(CC) -DFEDORA_KERNEL_5_11 $(CMP)

clean:
    rm $(BIN)exploit.bin