yes, I figured out the problem. Open the Makefile, and move the -lpcap to the end of the gcc line. I love this program!!!!
Aircrack-ptw has been released and I attempted to download and compile but ran in to some problems. Any ideas?
Reference: htt p: / / ww w.cdc.informatik.tu-darmstadt.de/aircrack-ptw/
bt aircrack-ptw-1.0.0 # make
gcc -o aircrack-ptw -Wall -fomit-frame-pointer -O3 -lpcap aircrack-ptw.c aircrack-ptw-lib.c
/tmp/ccs3gLp1.o(.text+0xaf): In function `main':
: undefined reference to `pcap_open_offline'
/tmp/ccs3gLp1.o(.text+0xcf): In function `main':
: undefined reference to `pcap_datalink'
/tmp/ccs3gLp1.o(.text+0x107): In function `main':
: undefined reference to `pcap_next_ex'
/tmp/ccs3gLp1.o(.text+0x2f0): In function `main':
: undefined reference to `pcap_next_ex'
collect2: ld returned 1 exit status
make: *** [aircrack-ptw] Error 1
bt aircrack-ptw-1.0.0 #
yes, I figured out the problem. Open the Makefile, and move the -lpcap to the end of the gcc line. I love this program!!!!
To be clear, this is what the modified Makefile should look like:
Code:aircrack-ptw: aircrack-ptw.c aircrack-ptw-lib.c aircrack-ptw-lib.h gcc -o aircrack-ptw -Wall -fomit-frame-pointer -O3 aircrack-ptw.c aircrack-ptw-lib.c -lpcap attacksim: attacksim.c aircrack-ptw-lib.c aircrack-ptw-lib.h gcc -o attacksim -Wall -fomit-frame-pointer -O3 attacksim.c aircrack-ptw-lib.c -lpcap clean: rm -f aircrack-ptw attacksim
thx elliot
Zambuka42... thanks loads...been fooling around with this for 2 hours...compiles fine now...
cheers...
no problem
Very helpful ... spent a few hours myself until i read this !
Thanks![]()
Thanks a lot, this works.