summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
author祝振军 <[email protected]>2023-10-09 09:29:32 +0000
committer祝振军 <[email protected]>2023-10-09 09:29:32 +0000
commit5fd1a1ee09756d45c349d1255ad67debcaacb9c4 (patch)
treea8d93f93d46f936a62c4fda50e92d91e1d0b58fb /README.md
parentbb3c9ffd69eb54ac2b48e042328bcdbbe0a21048 (diff)
parent64697d137ee0753ce3c31abfecb2cc0f9dfe83e9 (diff)
Merge branch 'dev' into 'main'main
v1.0.0 See merge request zhuzhenjun/libosfp!5
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index a5ad151..57661c9 100644
--- a/README.md
+++ b/README.md
@@ -8,13 +8,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
```
+## library usage
+```
+gcc example/sample.c -o sample -losfp; cat example/sample.c
+```
+
## run example
```
# load the fingerprint file and capture on eth0, filter tcp port 8888
-osfp_example -f /usr/var/lib/libosfp/fp.json -i eth0 "tcp port 8888"
+osfp_example -f /var/lib/libosfp/fp.json -i eth0 "tcp port 8888"
```