From 9bd1da24a5c089afda1ffe9074fca1959b638a2f Mon Sep 17 00:00:00 2001 From: Gerard Wagener Date: Thu, 11 Apr 2019 11:32:21 +0200 Subject: [PATCH] add: [pibs] skeleton for generating backscatter stats --- bin/Makefile | 9 +++++++++ bin/pibs-stat.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 bin/pibs-stat.c diff --git a/bin/Makefile b/bin/Makefile index 79d1f39..24e00b7 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -1,3 +1,12 @@ +all: pibs pibs-stat + +pibs-stat: pibs-stat.o libpibs.o memutils.o synseen.o + gcc -Wall -o pibs-stat pibs-stat.o libpibs.o memutils.o synseen.o -lwiretap `pkg-config --libs glib-2.0` -lpcap -lhiredis -ggdb + + +pibs-stat.o: pibs-stat.c + gcc -D HASHDEBUG=0 -Wall -c pibs-stat.c `pkg-config --cflags glib-2.0` -I /usr/include/wireshark/wiretap -I /usr/include/wireshark/wsutil -I /usr/include/wireshark `pkg-config --libs glib-2.0` -I /usr/local/include/hiredis -ggdb + pibs: pibs.o memutils.o synseen.o libpibs.o gcc -Wall -o pibs pibs.o memutils.o synseen.o libpibs.o -lwiretap `pkg-config --libs glib-2.0` -lpcap -lhiredis -ggdb diff --git a/bin/pibs-stat.c b/bin/pibs-stat.c new file mode 100644 index 0000000..69444ab --- /dev/null +++ b/bin/pibs-stat.c @@ -0,0 +1,28 @@ +/* +* pibs - Passive Identification of BackScatter +* +* Copyright (C) 2019 Gerard Wagener +* Copyright (C) 2019 CIRCL Computer Incident Response Center Luxembourg +* (SMILE gie). +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Affero General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Affero General Public License for more details. +* +* You should have received a copy of the GNU Affero General Public License +* along with this program. If not, see . +*/ +#include "pibs.h" +int main(int argc, char* argv[]) +{ + pibs_t* pibs; + pibs = init(); + + return EXIT_SUCCESS; +}