#! /bin/bash ## Quick start : ## Compile the testsearch engine : gcc -o testsearch testsearch.c -ldl ## Make a signature file : cat > sigs.txt << EOF virus-id1 signaturevirus1 attack-id2 signatureattack2 ... ... EOF ## use fsearch.py to generate a fsearch.c file ./fsearch.py -f sigs.txt -c c > fsearch.c ## Compile the generated file as a shared object gcc -O4 -shared -o fsearch.so fsearch.c ## Test it: time ./testsearch < /vmlinuz