No description
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • C 69.2%
  • Shell 26%
  • CMake 4.8%
Find a file
2024-03-12 10:55:51 +00:00
ci compile: migrate to cmake 2023-10-12 14:48:10 +08:00
cmake compile: migrate to cmake 2023-10-12 14:48:10 +08:00
example code: clean up 2023-10-26 13:48:41 +08:00
pcap profile: init profile stats 2023-10-11 15:08:32 +08:00
src fix compile warning 2024-03-12 10:55:51 +00:00
test code: clean up 2023-10-26 13:48:41 +08:00
third_party code: clean up 2023-10-26 13:48:41 +08:00
.gitignore compile: migrate to cmake 2023-10-12 14:48:10 +08:00
.gitlab-ci.yml api: MESA_osfp_xx -> osfp_xx 2023-10-13 14:08:55 +08:00
autorelease.sh compile: migrate to cmake 2023-10-12 14:48:10 +08:00
autorevision.sh compile: migrate to cmake 2023-10-12 14:48:10 +08:00
CMakeLists.txt code: clean up 2023-10-26 13:48:41 +08:00
data.json v0.0.5 2023-10-09 15:23:59 +08:00
Doxyfile v0.0.5 2023-10-09 15:23:59 +08:00
fp.json update fp.json 2024-03-12 10:47:28 +00:00
README.md api: MESA_osfp_xx -> osfp_xx 2023-10-13 14:08:55 +08:00

libosfp

Libosfp is a C library for OS fingerprinting.

install

# osfp_example depends on libpcap
yum install -y libpcap-devel
BUILD_TYPE=Debug PACKAGE=1 ./ci/travis.sh
yum install -y ./build/*.rpm

library usage

gcc -I./src example/sample.c -o sample -L./build -losfp; cat example/sample.c
LD_LIBRARY_PATH=${PWD}/build ./sample

run example

# load the fingerprint file and capture on eth0, filter tcp port 8888
./build/osfp_example -f /var/lib/libosfp/fp.json -i eth0 "tcp port 8888"