eaphammer icon indicating copy to clipboard operation
eaphammer copied to clipboard

hcxdumptool wont compile on kali (issue includes kludge fix)

Open stuartw1 opened this issue 2 years ago • 1 comments

Newest kali won't compile hcxdumptool as supplied


[*] Compiling hcxdumptool...

cc -O3 -Wall -Wextra -std=gnu99 -o hcxdumptool hcxdumptool.c -lpthread hcxdumptool.c: In function ‘processpackets’: hcxdumptool.c:3098:37: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGARP’? 3098 | if(ioctl(fd_socket, SIOCGSTAMP , &tv) < 0) | ^~~~~~~~~~ | SIOCGARP hcxdumptool.c:3098:37: note: each undeclared identifier is reported only once for each function it appears in hcxdumptool.c: In function ‘processrcascan’: hcxdumptool.c:3401:37: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGARP’? 3401 | if(ioctl(fd_socket, SIOCGSTAMP , &tv) < 0) | ^~~~~~~~~~ | SIOCGARP make: *** [Makefile:29: build] Error 1


this can be fixed quickly (but maybe not the correct way) by adding the following to ./local/hcxdumptool/hcxdumptool.c in the includes section

#include <linux/sockios.h>

the file should now compile without errors

stuartw1 avatar Aug 11 '22 20:08 stuartw1

I was about to create a pull request, but has been done already in #196

stuartw1 avatar Aug 12 '22 07:08 stuartw1

Resolved 1.14.0

s0lst1c3 avatar Oct 07 '23 18:10 s0lst1c3