diff -Naur wepdecrypt-0.8/configure wepdecrypt-0.8-p/configure --- wepdecrypt-0.8/configure 2006-07-09 01:53:20.000000000 +0200 +++ wepdecrypt-0.8-p/configure 2018-02-10 23:50:13.636205080 +0100 @@ -2915,7 +2915,7 @@ FIELD2=`$FLTK_CONFIG --version | awk -F . '{print $2}'`; FIELD3=`$FLTK_CONFIG --version | awk -F . '{print $3}'`; - if test $FIELD1 -le 1 -a $FIELD3 -lt 6; then + if test $FIELD1 -le 1 -a $FIELD2 -lt 1; then echo -e "\nconfigure: error: fltk-version must be 1.1.6 or greater!\n"; exit -1; fi if test $FIELD1 -lt 1; then diff -Naur wepdecrypt-0.8/src/Makefile wepdecrypt-0.8-p/src/Makefile --- wepdecrypt-0.8/src/Makefile 2006-07-09 01:48:08.000000000 +0200 +++ wepdecrypt-0.8-p/src/Makefile 2018-02-10 23:51:23.737345235 +0100 @@ -6,15 +6,12 @@ wepdecrypt: wepdecrypt.o rc4.o wepfilter.o log.o modes.o misc.o verify.o keygen.o localkeygen.o wepserver.o wepclient.o md5_digest.o $(LD) $(LDFLAGS) -o $@ wepdecrypt.o rc4.o wepfilter.o log.o \ modes.o misc.o md5_digest.o wepserver.o wepclient.o verify.o keygen.o localkeygen.o $(LIBS) - @if [ -f wepdecrypt.exe ]; then strip.exe wepdecrypt.exe; echo "strip.exe wepdecrypt.exe"; else strip wepdecrypt; echo "strip wepdecrypt"; fi gwepdecrypt: gwepdecrypt.cpp - $(FLTK) --compile gwepdecrypt.cpp - @if [ -f gwepdecrypt.exe ]; then strip.exe gwepdecrypt.exe; echo "strip.exe gwepdecrypt.exe"; else strip gwepdecrypt; echo "strip gwepdecrypt"; fi + $(CXX) $(LDFLAGS) $(CFLAGS) -I. -o $@ gwepdecrypt.cpp $(shell fltk-config --cflags --ldflags) $(LIBS) wkeygen: wkeygen.c - $(LD) $(LDFLAGS) $(CFLAGS) $(LIBS) -o $@ wkeygen.c - @if [ -f wkeygen.exe ]; then strip wkeygen.exe; echo "strip wkeygen.exe"; else strip wkeygen; echo "strip wkeygen"; fi + $(LD) $(LDFLAGS) $(CFLAGS) -o $@ wkeygen.c $(LIBS) wepdecrypt.o: wepdecrypt.c wepdecrypt.h $(CC) $(CFLAGS) -c -o $@ wepdecrypt.c diff -Naur wepdecrypt-0.8/src/wepclient.c wepdecrypt-0.8-p/src/wepclient.c --- wepdecrypt-0.8/src/wepclient.c 2006-07-09 01:48:08.000000000 +0200 +++ wepdecrypt-0.8-p/src/wepclient.c 2018-02-10 23:50:43.697265183 +0100 @@ -75,7 +75,7 @@ int server_connection(unsigned char * server_host, int port, char * packet_file, unsigned char * init_key, unsigned char * end_key, unsigned char * decrypted_key, unsigned char * bssid, unsigned char * mode ,int option){ int sd, read_bytes, write_bytes, i, fd; char file[11]="local.dump"; - unsigned char buffer[149], digest[16]; + unsigned char buffer[150], digest[16]; struct sockaddr_in dest; struct in_addr *host_ip; struct hostent *host;