8000 GitHub - jo-m/mavlink-fuzz
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

jo-m/mavlink-fuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Fuzzing the mavlink C library

# Prepare seeds
# You first need to place some MAVLink recording at `recording.mavlink`.
rm -rf seeds
mkdir -p seeds
cd seeds
cp ../recording.mavlink .
split -b 5000 recording.mavlink
rm recording.mavlink
cd ..

# Build
git clone https://github.com/mavlink/c_library_v1
git clone https://github.com/mavlink/c_library_v2
apt-get update
apt-get install -y build-essential afl++
afl-cc -I generated/include -o fuzztarget fuzztarget.c
gcc -I generated/include -o fuzztarget fuzztarget.c
# Test on some seed
./fuzztarget seeds/xbe

# Set up fuzzing system params
cd /sys/devices/system/cpu
echo performance | sudo tee cpu*/cpufreq/scaling_governor
echo core | sudo tee /proc/sys/kernel/core_pattern

# Run fuzzer
AFL_SKIP_CPUFREQ=1 afl-fuzz -i seeds/ -o fuzz_out/ -- ./fuzztarget '@@'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0