maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Cracking WPA in 10 Hours or Less ? (https://talk.maemo.org/showthread.php?t=81222)

psychologe 2011-12-30 22:34

Cracking WPA in 10 Hours or Less ?
 
The WiFi Protected Setup protocol is vulnerable to a brute force attack that allows an attacker to recover an access point’s WPS pin, and subsequently the WPA/WPA2 passphrase, in just a matter of hours.

the link is http://devttys0.com/2011/12/cracking...hours-or-less/
and tool is http://code.google.com/p/reaver-wps/
has somebody interest it ,compile reaver ,let it can run on N900 ,
i think that great!!

psychologe 2011-12-30 22:36

Re: Cracking WPA in 10 Hours or Less ?
 
i try to make it ,but reture error message:
gcc -Wall -g -O2 globule.c -c
In file included from globule.h:37,
from globule.c:34:
defs.h:43:18: error: pcap.h: No such file or directory
In file included from globule.c:34:

globule.h:115: error: expected specifier-qualifier-list before ‘pcap_t’
globule.h:199: error: expected ‘)’ before ‘*’ token
globule.h:200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
globule.c: In function ‘globule_deinit’:
globule.c:64: error: ‘struct globals’ has no member named ‘wps’
globule.c:64: error: ‘struct globals’ has no member named ‘wps’
globule.c:65: error: ‘struct globals’ has no member named ‘handle’
globule.c:65: warning: implicit declaration of function ‘pcap_close’
globule.c:65: error: ‘struct globals’ has no member named ‘handle’
globule.c: At top level:
globule.c:453: error: expected ‘)’ before ‘*’ token
globule.c:457: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
globule.c: In function ‘set_wps’:
globule.c:464: error: ‘struct globals’ has no member named ‘wps’
globule.c: In function ‘get_wps’:
globule.c:468: error: ‘struct globals’ has no member named ‘wps’
make: *** [globule.o] Error 1

-Tyler- 2011-12-31 04:44

Re: Cracking WPA in 10 Hours or Less ?
 
wonderful tool!! but i dont think it works for the N900 it only works few drivers in pc:

ath5k
ath9k
rtl8187
carl19170
ipw2000
rt2800pci
b43
rt73usb

but i will try to compile it for n900 and maybe we have luck!!

feifei435 2014-09-26 17:13

Re: Cracking WPA in 10 Hours or Less ?
 
This error happens because defs.h include a <pcap.h> file but there isn't any pcap.h in the reaver src dir(/home/fei435/openwrt-dreambox/build_dir/target-mips_r2_uClibc-0.9.30.1/reaver-1.4/src/).
so what we need todo is check the menuconfig and make sure the
Libraries --->libpcap is checked.Then we need copy pcap header files to the reaver src dir.
cp /home/fei435/openwrt-dreambox/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/pcap.h /home/fei435/openwrt-dreambox/build_dir/target-mips_r2_uClibc-0.9.30.1/reaver-1.4/src/
cp -r /home/fei435/openwrt-dreambox/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/pcap/ /home/fei435/openwrt-dreambox/build_dir/target-mips_r2_uClibc-0.9.30.1/reaver-1.4/src/

Then, this error should be diappear.




Quote:

Originally Posted by psychologe (Post 1143646)
i try to make it ,but reture error message:
gcc -Wall -g -O2 globule.c -c
In file included from globule.h:37,
from globule.c:34:
defs.h:43:18: error: pcap.h: No such file or directory
In file included from globule.c:34:

globule.h:115: error: expected specifier-qualifier-list before ‘pcap_t’
globule.h:199: error: expected ‘)’ before ‘*’ token
globule.h:200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
globule.c: In function ‘globule_deinit’:
globule.c:64: error: ‘struct globals’ has no member named ‘wps’
globule.c:64: error: ‘struct globals’ has no member named ‘wps’
globule.c:65: error: ‘struct globals’ has no member named ‘handle’
globule.c:65: warning: implicit declaration of function ‘pcap_close’
globule.c:65: error: ‘struct globals’ has no member named ‘handle’
globule.c: At top level:
globule.c:453: error: expected ‘)’ before ‘*’ token
globule.c:457: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
globule.c: In function ‘set_wps’:
globule.c:464: error: ‘struct globals’ has no member named ‘wps’
globule.c: In function ‘get_wps’:
globule.c:468: error: ‘struct globals’ has no member named ‘wps’
make: *** [globule.o] Error 1


feifei435 2014-09-26 17:16

Re: Cracking WPA in 10 Hours or Less ?
 
This error happens because defs.h include a <pcap.h> file but there isn't any pcap.h in the reaver src dir(/home/fei435/openwrt-dreambox/build_dir/target-mips_r2_uClibc-0.9.30.1/reaver-1.4/src/).
so what we need todo is check the menuconfig and make sure the
Libraries --->libpcap is checked.Then we need copy pcap header files to the reaver src dir.
cp /home/fei435/openwrt-dreambox/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/pcap.h /home/fei435/openwrt-dreambox/build_dir/target-mips_r2_uClibc-0.9.30.1/reaver-1.4/src/
cp -r /home/fei435/openwrt-dreambox/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include/pcap/ /home/fei435/openwrt-dreambox/build_dir/target-mips_r2_uClibc-0.9.30.1/reaver-1.4/src/

Then, this error should be diappear.


Quote:

Originally Posted by psychologe (Post 1143646)
i try to make it ,but reture error message:
gcc -Wall -g -O2 globule.c -c
In file included from globule.h:37,
from globule.c:34:
defs.h:43:18: error: pcap.h: No such file or directory
In file included from globule.c:34:

globule.h:115: error: expected specifier-qualifier-list before ‘pcap_t’
globule.h:199: error: expected ‘)’ before ‘*’ token
globule.h:200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
globule.c: In function ‘globule_deinit’:
globule.c:64: error: ‘struct globals’ has no member named ‘wps’
globule.c:64: error: ‘struct globals’ has no member named ‘wps’
globule.c:65: error: ‘struct globals’ has no member named ‘handle’
globule.c:65: warning: implicit declaration of function ‘pcap_close’
globule.c:65: error: ‘struct globals’ has no member named ‘handle’
globule.c: At top level:
globule.c:453: error: expected ‘)’ before ‘*’ token
globule.c:457: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
globule.c: In function ‘set_wps’:
globule.c:464: error: ‘struct globals’ has no member named ‘wps’
globule.c: In function ‘get_wps’:
globule.c:468: error: ‘struct globals’ has no member named ‘wps’
make: *** [globule.o] Error 1



All times are GMT. The time now is 19:19.

vBulletin® Version 3.8.8