v1.0.0
This commit is contained in:
@@ -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"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user