gassyrockstar / reaver-wps

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

New Drivers commands and which wifi adapter to buy? #239

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
After reading these issues and getting no replies, no answer on my problems I 
think all my problems are because of Alfa AWUS036H. I still think that 
installing new drivers would help but this guide 
http://www.backtrack-linux.org/wiki/index.php/Compat-wireless
doesn't work. That second link doesn't work.
cd /usr/src/
wget 
http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-11-
07.tar.bz2
tar jxpf compat-wireless-*
wget http://www.backtrack-linux.org/patches/wireless-patches-2.6.35.8.tar.gz
tar xpf wireless-patches-2.6.35.8.tar.gz
cd compat-wireless-*

patch -p1 < ../wireless-patches/404-ath_regd_optional.patch
patch -p1 < ../wireless-patches/ar9170_regdomain_override.patch
patch -p1 < ../wireless-patches/ath.patch
patch -p1 < ../wireless-patches/ath5k_regdomain_override.patch
patch -p0 < ../wireless-patches/ath9k_injection_fix.patch 
patch -p1 < ../wireless-patches/channel-negative-one-maxim.patch
patch -p1 < ../wireless-patches/mac80211_2.6.32.2-wl_frag+ack_radiotap.patch
patch -p1 < 
../wireless-patches/rtl8187-mac80211-injection-speed-2.6.30-rc3.patch
patch -p0 < ../wireless-patches/zd1211rw-inject+dbi-fix-2.6.26.patch
patch -p0 < ../wireless-patches/zd1211rw.patch 
make
make install
make wlunload

Anyway, maybe you know easier method to install drivers?
Second thing is that maybe all my problems would stop is I buy new wifi 
adapter? I strongly feel that all problems are bcause of Alfa(ieee).
What works for you?
What is cheap, what is good and works with Backtrack5/reaver right away?

Original issue reported on code.google.com by piotrchm...@poczta.fm on 15 Feb 2012 at 4:01

GoogleCodeExporter commented 8 years ago
You must install the "compat-wireless" according to your kernel and download 
stable versions.

download from here:
http://wireless.kernel.org/en/users/Download/stable/

Example:

My kernel is 3.0
Download "compat-wireless 3.0 stable releases"

in terminal:

tar -jxf compat-wireless-3.0.9-1.tar.bz2

cd compat-wireless-3.0.9-1

wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch

patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < channel-negative-one-maxim.patch

 ( apply any additional patches that you may need)

make
make install
sudo make wlunload
sudo modprobe driver-name

used by me in:
Ubuntu 11.10, kernel 3.0.12

Original comment by demon.ia...@hotmail.com on 15 Feb 2012 at 4:49

GoogleCodeExporter commented 8 years ago
i don't know what my kernel is. i use backtrack 5 rc1(downloaded ..  a week 
ago).
can you help me in that too?

Original comment by piotrchm...@poczta.fm on 15 Feb 2012 at 5:29

GoogleCodeExporter commented 8 years ago
uname -r gave me
2.6.39.4

Original comment by piotrchm...@poczta.fm on 15 Feb 2012 at 5:36

GoogleCodeExporter commented 8 years ago
I checked out this website:
http://linuxwireless.org/en/users/Download/stable#compat-wireless_2.6.39_stable_
releases
and should I use
compat-wireless-3.0.9-1.tar.bz2 (because it is first 3.0 driver)
or same as my kernel:
compat-wireless-2.6.39-1.tar.bz2(i see 2 versions but use first one, any 
difference?)

Original comment by piotrchm...@poczta.fm on 15 Feb 2012 at 5:40

GoogleCodeExporter commented 8 years ago
tar -jxf compat-wireless-2.6.39-1.tar.bz2
gave me error that "no such file or directory"
shouldn't there be any other line, command before that command?

Original comment by piotrchm...@poczta.fm on 15 Feb 2012 at 5:48

GoogleCodeExporter commented 8 years ago
ok, so I tried with just luck to work it out.

I couldn't just start with that "tar -jxf compat-wireless" command so instead I 
made folder called reaver on my desktop.
cd /root/Desktop/reaver
wget 
http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.39/compat-wirele
ss-2.6.39-1.tar.bz2
(did 100%)
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
(both did 100%)
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1 < channel-negative-one-maxim.patch
(both failed)
I thought it's because I'm at /Desktop/reaver/compat-wireless-2.6.39-1
I opened next terminal window and patched those two after merging what's in 
reaver and patches in 1 folder.
Both patches were succesful:)
make
(failed, I received:
/root/Desktop/reaver/config.mk:204: "WARNING: CONFIG-CFG80211-WEXT will be 
deactivated or not working because kernel was complied with 
CONFIG_WIRELESS-EXT=n. Tools using wext interface like iwconfig will not work. 
To activate it build your kernel e.g. with CONFIG-LIBIPW=m."
Your old wireless subsystem modules were left intact.
....
No such file or directory. Stop. Error 2.
)
but then make install failed too...

cd compat-wireless-2.6.39-1

Original comment by piotrchm...@poczta.fm on 15 Feb 2012 at 6:25

GoogleCodeExporter commented 8 years ago
so now I'm stuck and backtrack doesn't see my wifi adapter.

Original comment by piotrchm...@poczta.fm on 15 Feb 2012 at 6:29

GoogleCodeExporter commented 8 years ago
try this. you can save it into a script and make executable or copy and paste 
each line.
if you dont have svn installed do this first:

apt-get install subversion

this will also update your aircrack suite and you have the latest patches this 
way.

cd ~
svn co http://trac.aircrack-ng.org/svn/trunk/ aircrack-ng
cd ./aircrack-ng/src/
make sqlite=true unstable=true install
cd ./usr/src/
wget 
http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-11-
07.tar.bz2
wget http://www.backtrack-linux.org/patches/wireless-patches-2.6.35.8.tar.gz
tar -xvjf compat-wireless-2010-11-07.tar.bz2
tar -xvf wireless-patches-2.6.35.8.tar.gz
mv ./wireless-patches-2.6.35.8/* ~/aircrack-ng/patches/*
cd compat-wireless-2010-11-07.tar.bz2
./scripts/driver-select rtl818x
patch -p1 < ~/aircrack-ng/patches/channel-negative-one-maxim.patch
patch -p1 < 
~/aircrack-ng/patches/mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch 
patch -p1 < ~/aircrack-ng/patches/mac80211.compat08082009.wl_frag+ack_v1.patch 
patch -p1 < ~/aircrack-ng/patches/zd1211rw-2.6.28.patch 
patch -p1 < ~/aircrack-ng/patches/ipw2200-inject.2.6.36.patch
make && make install
make unload
modprobe rtl8187

Original comment by JonnyBla...@gmail.com on 15 Feb 2012 at 10:15

GoogleCodeExporter commented 8 years ago
I don't know how to save it to script and how to run it.
Since I use livedvd a script would be wonderful solution. Can you show me how?

Original comment by piotrchm...@poczta.fm on 16 Feb 2012 at 9:02

GoogleCodeExporter commented 8 years ago
I'm stuck again
wget http://www.backtrack-linux.org/patches/wireless-patches-2.6.35.8.tar.gz

doesn't exist so I couldn't go further
also
make sqlite=true unstable=true install
gave me warning and errors only

Original comment by piotrchm...@poczta.fm on 16 Feb 2012 at 10:12

GoogleCodeExporter commented 8 years ago
run this first:

apt-get install build-essential

apt-get install libssl-dev

iv attached the patches file for you as well.

Original comment by piotrchm...@poczta.fm on 17 Feb 2012 at 8:55

GoogleCodeExporter commented 8 years ago
apt-get install build-essential
apt-get install libssl-dev
(both worked but I think they didn't give any news)
cd ~
(does it do anything?)
svn cohttp://trac.aircrack-ng.org/svn/trunk/  aircrack-ng
cd ./aircrack-ng/src/
make sqlite=true unstable=true install
(did time it was long and I don't even know what is what)
cd ./usr/src/
(doesn't work, no file or directory)
SO I skipped it and then

wget 
http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-11-
07.tar.bz2

tar -xvjf compat-wireless-2010-11-07.tar.bz2
tar -xvf wireless-patches-2.6.35.8.tar.gz
(obviously couldn't work so I changed the filename to what you sent me and it 
unzipped it:)

mv ./wireless-patches-2.6.35.8/* ~/aircrack-ng/patches/*
(changed it also and folder "patches" with 4 patches files were created)
cd compat-wireless-2010-11-07.tar.bz2
./scripts/driver-select rtl818x
patch -p1<  ~/aircrack-ng/patches/channel-negative-one-maxim.patch
patch -p1<  
~/aircrack-ng/patches/mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch
patch -p1<  ~/aircrack-ng/patches/mac80211.compat08082009.wl_frag+ack_v1.patch
patch -p1<  ~/aircrack-ng/patches/zd1211rw-2.6.28.patch
patch -p1<  ~/aircrack-ng/patches/ipw2200-inject.2.6.36.patch
(I had problem with patches too because you forgot /sr/c inside address but it 
worked, all 4 or 5 installed)

make&&  make install
(this ended with Error 2, but i don't know what it means and if that is 
something wrong)
make unload
modprobe rtl8187
then apt-get update
apt-get install reaver
airmon-ng start wlan0
airodump-ng mon0
reaver -i mon0 -b bssid -vv

I couldn't get assosciation. So nothing wroked out...

Then I tried that driver trick
modprobe -r rtl8187 && modprobe r8187
Now I can have assosciation but it showed me error by saying:
you are on channel 6 but AP is on channel 9
I tried different networks but nothing could even start not to mention that I 
could finally see reaver working...

Original comment by piotrchm...@poczta.fm on 17 Feb 2012 at 9:42

GoogleCodeExporter commented 8 years ago
I am unable to speak for the differences between the Alfa AWUS036H and the 
AWUS036NH (the model which I have) I have heard people say that the AWUS036NH 
doesn't work, but that certainly isn't what I have found (perhaps there are 
certain production runs which have issues due to spec changes)

BT5-R1 worked (both as virtual machine and a regular install) once the patching 
process (you quoted was carried out)

One quirk I did notice was that Reaver & Wash didn't work unless airmon-ng was 
set to use the correct channel, however that appeared to rectify itself after a 
couple of reboots.

Original comment by kilby.ct...@gmail.com on 17 Feb 2012 at 3:23

GoogleCodeExporter commented 8 years ago
Oh yes the BT5-r1 versions I have used have both been 32 bit versions (which 
could make a difference)

Original comment by kilby.ct...@gmail.com on 17 Feb 2012 at 3:25

GoogleCodeExporter commented 8 years ago
I'm using alfa awus036h and bt 5 and 5 rc1(no difference to me)
I don't know how reaver works but I thought that like other password looking 
programs this would also could use faster processor.
Anyway I have enough of using my alfa, I 've read all manuals, I've trriued all 
commands, nothing works.
wash works, I mean it shows me all networks with wps
reaver also works but... it shows me different errors every time

Original comment by piotrchm...@poczta.fm on 17 Feb 2012 at 4:57