summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorzhuzhenjun <[email protected]>2023-10-12 15:05:58 +0800
committerzhuzhenjun <[email protected]>2023-10-12 15:36:31 +0800
commit8b8627b0d8e06cb2d1073b2e86741dad8c39d4f6 (patch)
treee41e8a5e70bc0d043f34b2a1651e026a15d54b4f /README.md
parent7e1849233b8640e6139143c99423bf71cca0b6b2 (diff)
symbol: set public symbols prefixv1.1.0rel-1.1
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/README.md b/README.md
index a44e37b..6936a78 100644
--- a/README.md
+++ b/README.md
@@ -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"
```