I'm getting a lot of errors when I try to compile this on Ubuntu. I downloaded version 1.5.
First of all, in src/smb/ADMsmb.c, line 126, it has this line:
if (recvfrom (socket_client, buffer2, sizeof (buffer2), 0, (struct sockaddr *) &sin_dst, &(int) longueur) != -1)
It gives an error because of the "&(int) longueur", but since it's been declared as an int, I think removing "(int)" will remove that problem.
Another error, which I don't know where to start debugging:
make[1]: Entering directory `/home/brad/nsat/src'
make[2]: Entering directory `/home/brad/nsat/src/mod'
c++ -Wall -O6 -funroll-loops -ansi -fPIC -DLINUX -c xp_icmp_addrmask.c
In file included from xp_icmp_addrmask.c:24:
xprobe.h:85:18: error: pcap.h: No such file or directory
xp_icmp_addrmask.c: In function ‘rpack_t* send_icmpmaskreq_req(sockaddr_in)’:
xp_icmp_addrmask.c:124: warning: comparison between signed and unsigned integer expressions
make[2]: *** [xp_icmp_addrmask.o] Error 1
make[2]: Leaving directory `/home/brad/nsat/src/mod'
make[1]: *** [modobj] Error 2
make[1]: Leaving directory `/home/brad/nsat/src'
make: *** [all] Error 2
It looks like pcap.h is missing, but I may be wrong. I'm having trouble decoding the error messages.