X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mbd%2Fmbd.pl;h=7fcc8d8100a3a67e6e2f41bd763d797c684e4a06;hb=065361daac62b4cdb33cf19caa534e29ac1dfde0;hp=cbb1237c9d6d49c379c701d6a84db7a6b929f0ba;hpb=059283b9a54e09b5226bf80c04c6db2546b33741;p=nms diff --git a/mbd/mbd.pl b/mbd/mbd.pl index cbb1237..7fcc8d8 100644 --- a/mbd/mbd.pl +++ b/mbd/mbd.pl @@ -16,6 +16,8 @@ sub fhbits { return $bits; } +open LOG, ">>", "mbd.log"; + my @ports = mbd::find_all_ports(); # Open a socket for each port @@ -62,6 +64,8 @@ while (1) { last; } + print LOG "$dport $size $pass\n"; + if (!$pass) { print "$dport, $size bytes => filtered\n"; }