Showing posts with label ng. Show all posts
Showing posts with label ng. Show all posts
Monday, September 11, 2017
Ubuntu 11 10 aireplay ng and the mon0 is on channel 1 error and how to fix it shell script included
Ubuntu 11 10 aireplay ng and the mon0 is on channel 1 error and how to fix it shell script included
I had recently upgrade my Ubuntu install to 11.10. Along with other annoyances I came across I ran into a bit of a deal breaker when I went to run aireplay-ng. I was getting the following error:
mon0 is on channel -1, but the AP uses channel [#]
This was going to be a huge problem since I know that my ZyDAS 1211 chip set was compatible with packet injection. After searching around for a bit I found a great solution from this site here about the drivers and how to patch and reinstall the older ones back in. Below I have a script that you can run to get that installed.

==================================================================
#!/bin/bash
#
# This fix was found at:
# http://linux-software-news-tutorials.blogspot.com/2011/06/solve-error-mon0-is-on-channel-1-but-ap.html
#
# If this script helps you be sure to drop him a line and
# say thanks!
echo -e " 33[1;32m###########################################"
echo -e "# Ubuntu Patched Drivers Installer Script #"
echo -e "# Tested on Ubuntu 11.04 and 11.10 #"
echo -e "###########################################"
echo " Coded By: Travis Phillips"
echo " Date: 01/18/2012"
echo " Website: http://theunl33t.blogspot.com"
echo -e -n " [*] Installing build-essential...33[0m"
sudo apt-get -y install build-essential &> /dev/null
echo -e "33[1;32mDone!"
echo -e -n " [*] Downloading Wireless Drivers...33[0m"
wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2011-06-16.tar.bz2 &> /dev/null
echo -e "33[1;32mDone!"
echo -e -n " [*] Extracting...33[0m"
tar -jxf compat-wireless-2011-06-16.tar.bz2
cd compat-wireless-2011-06-16
echo -e "33[1;32mDone!"
echo -e -n " [*] Downloading Patches...33[0m"
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch &>12 /dev/null
wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch &>12 /dev/null
echo -e "33[1;32mDone!"
echo -e -n " [*] Applying Patches...33[0m"
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch &> /dev/null
patch ./net/wireless/chan.c channel-negative-one-maxim.patch &> /dev/null
echo -e "33[1;32mDone!"
echo -e " [*] Building patched drivers and installing."
echo -e " 33[31mTHIS WILL TAKE ABOUT 5-10 mins..."
echo -e " Please be patient and do *NOT* interrupt this process33[0m "
make &> /dev/null
echo -e " 33[1;32m[*] Compiling Complete. Installing Drivers...33[0m "
sudo make install &> /dev/null
echo -e "33[1;32m[*] Installing Patched drivers completed!"
echo -e -n " [*] Cleaning Up...33[0m"
cd ..
rm compat-wireless-2011-06-16.tar.bz2
rm -rf compat-wireless-2011-06-16
echo -e "33[1;32mDone!"
echo -e " [*] 33[1;37mScript Finished! Please reboot to finish the patch.33[0m "
==================================================================
To run save it to a save to a file called patchwifidrivers.sh and in a terminal type
chmod +x patchwifidrivers.sh
./patchwifidrivers.sh
Hope this helps some people.
download file now
Friday, August 18, 2017
Tutorial AirCrack Ng
Tutorial AirCrack Ng
Ser� necessario ter o pacote aircrack ent�o,abra uma nova shell e digite "apt-get install aircrack-ng" *Sem as aspas*.
Espere o download ser concluido e vamos por a m�o na massa.
Digite sudo su [enter]
Depois digite sua senha para ter acesso root :D
airmon-ng stop wlan0 < Aqui vai desativar o dispositivo.
Apos parar o dispositivo d�:
ifconfig wlan0 down < Com esse comando ira resetar as configura��es.
em seguida use o:
macchanger --mac 00:11:22:33:44:55 wlan0 < Para mudar o MAC da sua placa de rede.
airmon-ng start wlan0 < Para ativar a placa de rede novamente
Se der certo vai aparecer (Mode monitor Enabled) .
Ma mesma shell digite este comando,
airodump-ng wlan0 airodump-ng -c (Aqui digite o canal da rede) -w (Digite aqui o nome do arquivo que ira ser criado com os pacotes) --bssid (BSSID da rede) wlan0
Ir� aparecer uma tabela, com uns numeros subindo (o DATA), � a quantidade de IVs capturados.
Voc� precisara de mais ou menos 80 Mil a 120 Mil IVs para conseguir quebrar uma chave WEP
Isso demora, depende do nivel do sinal da rede, depende do tanto de pessoas utilizando aquela rede, e depende da potencia do dispositivo que voc� usa.
Ap�s ter um numero considerados de IV , sem fechar a shell antiga abra uma nova e digite
aircrack-ng -b (BSSID) (Aqui � o nome do arquivo que voc� escolheu,se foi "teste" digite teste-01.cap)
Ficando assim
aircrack-ng -b (BSSID) teste-01.cap
Agora � s� aguardar a chave ser quebrada :*
Se aparecer 32:54:69:85:74:12
A Chave sera 325469857412 no windows e no linux ser� 32:54:69:85:74:12
Quase esqueci,se voc� n�o tiver o MAC Changer d�
apt-get install macchanger para instalar
Se n�o conseguir com aqueles comandos tente esses :
ifconfig wlan0 down
.
iwconfig wlan0 mode monitor
.
airodump-ng wlan0
download file now
Subscribe to:
Posts (Atom)