It looks like ctl_init_arrays() tries to clear out data structures (specifically, ctl.nk_array) that don't have memory allocated if IP capture is disabled with -x, leading to a segfault. Candidate patch attached.
This is pretty Q'n'D, I'd appreciate someone with a clearer mental model of LaBrea reviewing this.
Basically what I'm trying to do is modify LaBrea so it can tarpit traffic to just specific ports on only the local system - make it into a service tarpit in addition to a netblock scan tarpit.
File Added: util_nk_array-segfault.patch
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Patch to skip access of unallocated ctl.nk_array
Logged In: YES
user_id=786519
Originator: YES
and another one in util.c
This is pretty Q'n'D, I'd appreciate someone with a clearer mental model of LaBrea reviewing this.
Basically what I'm trying to do is modify LaBrea so it can tarpit traffic to just specific ports on only the local system - make it into a service tarpit in addition to a netblock scan tarpit.
File Added: util_nk_array-segfault.patch
Don't calculate offset into uninitialized array
Logged In: YES
user_id=786519
Originator: YES
and clean up pkt_handler.c just a bit too.
File Added: pkt_handler-segfault.patch