Kennyl / reaver-wps

Automatically exported from code.google.com/p/reaver-wps
0 stars 0 forks source link

walsh - packet filter compile error #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run walsh -i wlan0
2.
3.

What is the expected output? What do you see instead?
bt ~ # airmon-ng start wlan0

Interface       Chipset         Driver

wlan0           RTL8187         r8187 (monitor mode enabled)

bt ~ # walsh -i wlan0
[X] ERROR: Failed to compile packet filter
bt ~ # walsh -i mon0
[X] ERROR: Failed to open 'mon0' for capturing

What version of the product are you using? On what operating system?
v1.3 on BackTrack 3 Final HDD Installation, ALFA AWUS036H RTL8187

Please provide any additional information below.
had a warning during make from argsparser.c (declaration confilct on `strtof`). 
anything else works fine.

bt src # ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for pcap_open_live in -lpcap... yes
checking for sqlite3_open in -lsqlite3... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
configure: creating ./config.status
config.status: creating Makefile

bt src # make
(cd utils && make)
make[1]: Entering directory `/root/reaver-1.3/src/utils'
  CC  base64.c
  CC  common.c
  CC  ip_addr.c
  CC  radiotap.c
  CC  trace.c
  CC  uuid.c
  CC  wpa_debug.c
  CC  wpabuf.c
  CC  os_unix.c
  CC  eloop.c
ar cr libutils.a base64.o common.o ip_addr.o radiotap.o trace.o uuid.o 
wpa_debug                             .o wpabuf.o os_unix.o eloop.o
make[1]: Leaving directory `/root/reaver-1.3/src/utils'
(cd tls && make)
make[1]: Entering directory `/root/reaver-1.3/src/tls'
  CC  asn1.c
  CC  bignum.c
  CC  pkcs1.c
  CC  pkcs5.c
  CC  pkcs8.c
  CC  rsa.c
  CC  tlsv1_client.c
  CC  tlsv1_client_read.c
  CC  tlsv1_client_write.c
  CC  tlsv1_common.c
  CC  tlsv1_cred.c
  CC  tlsv1_record.c
  CC  tlsv1_server.c
  CC  tlsv1_server_read.c
  CC  tlsv1_server_write.c
  CC  x509v3.c
ar cr libtls.a asn1.o bignum.o pkcs1.o pkcs5.o pkcs8.o rsa.o tlsv1_client.o 
tlsv1_client_read.o tlsv1_client_write.o tlsv1_common.o tlsv1_cred.o 
tlsv1_record.o tlsv1_server.o tlsv1_server_read.o tlsv1_server_write.o x509v3.o
make[1]: Leaving directory `/root/reaver-1.3/src/tls'
(cd crypto && make)
make[1]: Entering directory `/root/reaver-1.3/src/crypto'
  CC  aes-cbc.c
  CC  aes-ctr.c
  CC  aes-eax.c
  CC  aes-encblock.c
  CC  aes-internal.c
  CC  aes-internal-dec.c
  CC  aes-internal-enc.c
  CC  aes-omac1.c
  CC  aes-unwrap.c
  CC  aes-wrap.c
  CC  des-internal.c
  CC  dh_group5.c
  CC  dh_groups.c
  CC  md4-internal.c
  CC  md5.c
  CC  md5-internal.c
  CC  md5-non-fips.c
  CC  milenage.c
  CC  ms_funcs.c
  CC  rc4.c
  CC  sha1.c
  CC  sha1-internal.c
  CC  sha1-pbkdf2.c
  CC  sha1-tlsprf.c
  CC  sha1-tprf.c
  CC  sha256.c
  CC  sha256-internal.c
  CC  crypto_internal.c
  CC  crypto_internal-cipher.c
  CC  crypto_internal-modexp.c
  CC  crypto_internal-rsa.c
  CC  tls_internal.c
  CC  fips_prf_internal.c
ar cr libcrypto.a aes-cbc.o aes-ctr.o aes-eax.o aes-encblock.o aes-internal.o 
aes-internal-dec.o aes-internal-enc.o aes-omac1.o aes-unwrap.o aes-wrap.o 
des-internal.o dh_group5.o dh_groups.o md4-internal.o md5.o md5-internal.o 
md5-non-fips.o milenage.o ms_funcs.o rc4.o sha1.o sha1-internal.o sha1-pbkdf2.o 
sha1-tlsprf.o sha1-tprf.o sha256.o sha256-internal.o crypto_internal.o 
crypto_internal-cipher.o crypto_internal-modexp.o crypto_internal-rsa.o 
tls_internal.o fips_prf_internal.o
make[1]: Leaving directory `/root/reaver-1.3/src/crypto'
(cd wps && make)
make[1]: Entering directory `/root/reaver-1.3/src/wps'
gcc -I../utils -I ../ wps_attr_build.c -c
gcc -I../utils -I ../ wps_attr_parse.c -c
gcc -I../utils -I ../ wps_attr_process.c -c
gcc -I../utils -I ../ wps.c -c
gcc -I../utils -I ../ wps_common.c -c
gcc -I../utils -I ../ wps_dev_attr.c -c
gcc -I../utils -I ../ wps_enrollee.c -c
gcc -I../utils -I ../ wps_registrar.c -c
gcc -I../utils -I ../ wps_ufd.c -c
make[1]: Leaving directory `/root/reaver-1.3/src/wps'
(cd lwe && make BUILD_STATIC=y libiw.a)
make[1]: Entering directory `/root/reaver-1.3/src/lwe'
cp wireless.21.h wireless.h
gcc -Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow 
-Wpointer-arith -Wcast-qual -Winline -I. -MMD     -fPIC -c -o iwlib.so iwlib.c
rm -f libiw.a
ar cru libiw.a iwlib.so
ranlib libiw.a
make[1]: Leaving directory `/root/reaver-1.3/src/lwe'
(cd libwps && make)
make[1]: Entering directory `/root/reaver-1.3/src/libwps'
gcc -Wall libwps.c -c
make[1]: Leaving directory `/root/reaver-1.3/src/libwps'
gcc -Wall -g -O2 globule.c -c
gcc -Wall -g -O2 argsparser.c -c
argsparser.c: In function 'process_arguments':
argsparser.c:101: warning: implicit declaration of function 'strtof'
gcc -Wall -g -O2 init.c -c
gcc -Wall -g -O2 misc.c -c
gcc -Wall -g -O2 -Ilibwps sql.c -c
gcc -Wall -g -O2 builder.c -c
gcc -Wall -g -O2 crc.c -c
gcc -Wall -g -O2 -Ilibwps 80211.c -c
gcc -Wall -g -O2 iface.c -c
gcc -Wall -g -O2 -Ilibwps wpsmon.c *.o libwps/*.o wps/*.o tls/bignum.o 
tls/libtls.a utils/libutils.a crypto/libcrypto.a lwe/libiw.a -lpcap -lm 
-lsqlite3  -o walsh
gcc -Wall -g -O2 -Ilibwps sigint.c -c
gcc -Wall -g -O2 sigalrm.c -c
gcc -Wall -g -O2 keys.c -c
gcc -Wall -g -O2 pins.c -c
gcc -Wall -g -O2 send.c -c
gcc -Wall -g -O2 -Ilibwps exchange.c -c
gcc -Wall -g -O2 -Ilibwps session.c -c
gcc -Wall -g -O2 -Ilibwps cracker.c -c
gcc -Wall -g -O2 -Ilibwps wpscrack.c *.o libwps/*.o wps/*.o tls/bignum.o 
tls/libtls.a utils/libutils.a crypto/libcrypto.a lwe/libiw.a -lpcap -lm 
-lsqlite3  -o reaver

bt src # make install
if [ ! -d /etc/reaver ]; then mkdir /etc/reaver; fi
cp reaver.db /etc/reaver/reaver.db
if [ -e walsh ]; then cp walsh /usr/local/bin/walsh; fi
if [ -e reaver ]; then cp reaver /usr/local/bin/reaver; fi
if [ ! -e /usr/bin/walsh ]; then ln -s /usr/local/bin/walsh /usr/bin/walsh; fi
if [ ! -e /usr/bin/reaver ]; then ln -s /usr/local/bin/reaver /usr/bin/reaver; 
fi

Original issue reported on code.google.com by olli...@gmail.com on 4 Jan 2012 at 11:24

GoogleCodeExporter commented 9 years ago
Reaver uses the standard libpcap library to open the monitor mode interface, so 
if libpcap can't open it there isn't really any code changes that I can make to 
fix this AFAIK.

Your driver is the r8187, not the rtl8187. This is probably because you are 
using an old version of backtrack. Download BT5 and things should work better 
for you.

Original comment by cheff...@tacnetsol.com on 4 Jan 2012 at 12:58

GoogleCodeExporter commented 9 years ago
I can reporoduce this in Backtrack R5.1. Using svn rev #90 and issuing ./wash 
-i mon0

Original comment by maciek...@gmail.com on 13 Jan 2012 at 5:25

GoogleCodeExporter commented 9 years ago
Edit: Same USB WiFi interface as op.

Original comment by maciek...@gmail.com on 13 Jan 2012 at 5:26

GoogleCodeExporter commented 9 years ago
I also got this on Backtrack R5.1 .. however after doing 

airmon-ng start wlan0 

it started working!

Original comment by henrique...@gmail.com on 17 Jan 2012 at 9:27