nbs-system / naxsi

NAXSI is an open-source, high performance, low rules maintenance WAF for NGINX
GNU General Public License v3.0
4.8k stars 606 forks source link

Building Naxsi on Kali Purple #639

Closed linked-kiwi closed 1 year ago

linked-kiwi commented 1 year ago

I would like to demonstrate the use of a WAF-capable proxy on Kali Purple. I firstly tried loading the deb package (1.3) for Debian Bullseye but on install nginx reported [emerg] 5996:5996 dlopen() :/usr/share/nginx/modules/ngx_http_naxsi_module.so failed. Debian Buster also failed with the same error. Is it possible to get a Naxsi build that would work with Kali/Kali Purple?

Although I'd prefer to use the prebuilt package, I did try to build it. In attempting to build Naxsi (1.3) with Nginx (1.24.0) on the Kali Purple platform I get the error message: src/event/ngx_event_udp.h:38:27: error: field pkt6 has incomplete type. This is followed by the error ../naxsi-1.3/naxsi_src//naxsi_runtime.c:2856:36: error 'r->headers_in.x_forwarded_for' is a pointer, did you mean to use '->'? There are then follow on errors in using r->.

wargio commented 1 year ago

don't use this repository since has been deprecated. Use mine instead: https://github.com/wargio/naxsi For more info: https://github.com/nbs-system/naxsi/issues/630

linked-kiwi commented 1 year ago

Giovanni - thank you!