diff options
| author | zhuzhenjun <[email protected]> | 2023-10-12 15:05:58 +0800 |
|---|---|---|
| committer | zhuzhenjun <[email protected]> | 2023-10-12 15:36:31 +0800 |
| commit | 8b8627b0d8e06cb2d1073b2e86741dad8c39d4f6 (patch) | |
| tree | e41e8a5e70bc0d043f34b2a1651e026a15d54b4f /README.md | |
| parent | 7e1849233b8640e6139143c99423bf71cca0b6b2 (diff) | |
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -7,20 +7,19 @@ Libosfp is a C library for OS fingerprinting. ``` # osfp_example depends on libpcap yum install -y libpcap-devel -# build and install -./build.sh -./package.sh -yum install package/*.rpm +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 +gcc -I./src example/sample.c -o sample -L./build -lMESA_osfp; cat example/sample.c +LD_LIBRARY_PATH=${PWD}/build ./sample ``` ## run example ``` # load the fingerprint file and capture on eth0, filter tcp port 8888 -osfp_example -f /var/lib/libosfp/fp.json -i eth0 "tcp port 8888" +./build/MESA_osfp_example -f /var/lib/MESA_osfp/fp.json -i eth0 "tcp port 8888" ``` |
