PDA

View Full Version : How to install Wifite-mod-pixiewps and reaver-wps-fork-t6x to nethunter



pedropt
2015-06-01, 20:54
Many people dont know but a guy found a way to crack wps pins from routers offline , witch means that reaver only connects one time to the AP to get the data that it needs , and then the tool pixiewps breakes the wps pin of that router in offline mode .
the github of pixiewps can be found in here :
https://github.com/wiire/pixiewps

But only the new version of reaver is able to catch that specific data that pixiewps needs to do the crack offline .
Pixiewps dont work in all routers . (check the github info)
Anyway , after pixiewps appearance at kali repository , people start to add the pixiewps switches to the common tools for wifi hacking , witch is reaver , and wifite .
https://github.com/t6x/reaver-wps-fork-t6x
https://github.com/aanarchyy/wifite-mod-pixiewps

I will explain you how to add those tools to your nethunter .
Starting a remote shell to one desktop computer could be usefull , because there is some writing to do . (you can also do it manually on your tablet by tiping everything.)
to start a remote shell look at this thread : https://forums.kali.org/showthread.php?25350-How-to-install-tools-and-updates-remotely-on-Nethunter-using-a-Secure-shell

this is the code you need to do to install everything :

mkdir backup
cd backup
git clone https://github.com/derv82/wifite.git
git clone https://github.com/aanarchyy/wifite-mod-pixiewps.git
git clone https://github.com/t6x/reaver-wps-fork-t6x.git
git clone https://github.com/wiire/pixiewps.git
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
sudo apt-get install libpcap-dev aircrack-ng sqlite3 libsqlite3-dev libssl-dev -y
cd pixiewps/src/
make && make install
cd /root/backup/reaver-wps-fork-t6x/src/
./configure
make && make install
cp /root/backup/wifite/wifite.py /usr/bin/wifite
chmod +x /usr/bin/wifite
cp /root/backup/wifite-mod-pixiewps/wifite-ng /usr/bin/wifite-ng
chmod +x /usr/bin/wifite-ng

After all this instalations , you can run from your terminal "wifite" , and it will be your regular wifite tool , or you can type in terminal "wifite-ng" , and you will use the modded version of wifite to work with pixiewps automatically .

http://s11.postimg.org/si7g7mm5f/wifite.png

There will be a directory called Backup on your root folder that contains all these tools you have just installed .

Working with pixiewps can be found in this youtube link : *REMOVED*

Noxferatu
2015-06-28, 22:26
Thanks for posting this, I'll try it tonight.

Kymru
2015-07-28, 21:08
hi
i have got this running on my laptop, working great, but can it be put onto a Raspberry Pi 2?

pedropt
2015-07-28, 23:44
raspberry uses Arm cpu , so it should work too .
The instalation is the same way , however it could be interesting installing aircrack-ng , i have no idea if it is installed by default on kali raspberry images .

Kymru
2015-07-29, 11:14
so i burnt a fresh copy of kali-1.1.1-rpi2.img to an MicroSD card, aircrack-ng was there

KaliPi Clean Install
Aircrack-ng 1.2 rc1 - (C) 2006-2013 Thomas d'Otreppe
http://www.aircrack-ng.org

then did a full apt-get install kali-linux-full which installed all the essential apps for wifite

KaliPi Full Install
Aircrack-ng 1.2 rc1 - (C) 2006-2013 Thomas d'Otreppe
http://www.aircrack-ng.org

then i followed the above instructions, which installed as planned

KaliPi Full Install + modifed wifite
Aircrack-ng 1.2 rc2 - (C) 2006-2014 Thomas d'Otreppe
http://www.aircrack-ng.org

so now i have wifite and wifite-ng

when i use normal wifite, it works as it should, no problem at all, but when i use wifite-ng, i get this

root@KaliPi2:~# wifite-ng

.;' `;,
.;' ,;' `;, `;, WiFite v2 (r112)
.;' ,;' ,;' `;, `;, `;,
:: :: : ( ) : :: :: automated wireless auditor
':. ':. ':. /_\ ,:' ,:' ,:'
':. ':. /___\ ,:' ,:' designed for Linux
':. /_____\ ,:'
/ \

modified by aanarchyy([email protected])
Credits to wiire,DataHead,soxrok2212,nxxxu,nuroo


[+] scanning for wireless devices...
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0
[+] enabling monitor mode on phy0... done
phy0


so i answer my own question, i can put it on a RaspberryPi 2, but doesn't work

pedropt
2015-07-29, 21:15
what is the chipset of your wifi card ?
i will test it here with my rtl8187l to see what happens.

pedropt
2015-07-29, 23:01
i spend almost 2 hours on this issue , and i notice that it could be not so easy to work with these scripts on raspberry , i have to look more into it , but only on saturday because this may take a while to get into a conclusion .
if i manage to put this working i will let you know .

Kymru
2015-07-30, 02:45
I use the Alfa at the moment, but all these others i have tried, none of them work with wifite-ng and only the top 3 work with wifite, no additional drivers have been installed

Alfa AWUSO36NH
Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter

DIGITAZZ Wifi Adaptor
Ralink Technology, Corp. RT5370 Wireless Adapter

Generic
Ralink Technology, Corp. RT5370 Wireless Adapter

TP-Link TL-WN725N
Realtek Semiconductor Corp. (RTL8188EUS)

MERCURY MW150US
Realtek Semiconductor Corp. (RTL8188CUS)

TP-Link TL-WN725N
Realtek Semiconductor Corp. (RTL8188CUS)

pedropt
2015-08-03, 22:27
I did not had time this weekend to check this out yet , but next week i start my vacations and i have 1 week dedicated to stuff i have to do here that i was not yet unable to get fix due lack of time or patience .
During this week i will problaly not have time to deal with that issue on raspberry , but i will tell you what i found so far on that day that i test it .
ra3017 is not working , lack of drivers , rtl 8187L was not working also , but i was able to put it working as an wifi only .
Injection is not working on raspberry , i get the same issue as you but on wifite-ng and normal wifite .
I can start it manually but if i pull up airodump then i get an error .
So ... this may take a while to figure out what is going on , and i am not absolute sure that it will work .
I also got an issue installing reaver-fork .
As soon as i get more news i will let you now .

Kymru
2015-08-03, 22:44
ok, thank you, i will wait patiently

genious
2015-08-04, 21:50
try this:
airmon-ng start wlan1
wifite-ng
and it goes automatically to monitor interface you just put up via airmon

Kymru
2015-08-05, 22:05
yeah that works

pedropt
2015-08-16, 18:39
Only now i got time to deal with this question about using pixie wps in raspberry .
It is possible but i had some work to do :
Here they are all the steps i took to put it working on this log : Pastebin

SSH Log (http://pastebin.com/u6vN3hc4)

I used an ssh connection to my raspberry to do the work on this .
Watch the log .

Josephreak
2015-08-17, 13:39
root@localhost:~/backup# sudo apt-get install libpcap-dev aircrack-ng sqlite3 libsqlite3-dev libssl-dev -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libpcap-dev
E: Unable to locate package libsqlite3-dev


I'm using Kali version 1.10a I think

It worked when I ran it from LIVE option, but when I actually install (dual boot) it gives me the error above.

Thanks (sorry if I wasn't detailed enough.)

pedropt
2015-08-17, 21:12
That error you have should be post in another thread .
Anyway , check your kali sources in /etc/apt/sources.list
add these repositories to that file :

## Regular repositories
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Source repositories
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
after editing the file and adding the sources from kali website , do an :

apt-get clean
apt-get update && apt-get upgrade -y

In case you want to update to Kali 2.0 then use only these next lines :

deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

Scruffyhead
2015-08-22, 09:22
To get this working With my pi and rtl 8187

airmon-ng start wlan0

ifconfig wlan0mon down
iwconfig wlan0mon mode monitor
ifconfig wlan0mon up

deadlyhabit
2015-08-26, 04:35
To get this working With my pi and rtl 8187

airmon-ng start wlan0

ifconfig wlan0mon down
iwconfig wlan0mon mode monitor
ifconfig wlan0mon up

try:
airmon-ng check kill
airmon-ng start wlan0

should bring up wlan0mon as needed

then
airmon-ng stop wlan0mon
service network-manager start

to go back to normal

sonnu
2015-09-02, 04:28
Hello Pedropt,

when I run into the line in red below, after it downloaded a lot of things from kali then it said that I don't have enough space.

Could you please tell me how can I solve this? I run Kali v1.1.0 Live from my USB.

Can I just ignore that line and run the rest?


mkdir backup
cd backup
git clone https://github.com/derv82/wifite.git
git clone https://github.com/aanarchyy/wifite-mod-pixiewps.git
git clone https://github.com/t6x/reaver-wps-fork-t6x.git
git clone https://github.com/wiire/pixiewps.git
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
sudo apt-get install libpcap-dev aircrack-ng sqlite3 libsqlite3-dev libssl-dev -y
cd pixiewps/src/
make && make install
cd /root/backup/reaver-wps-fork-t6x/src/
./configure
make && make install
cp /root/backup/wifite/wifite.py /usr/bin/wifite
chmod +x /usr/bin/wifite
cp /root/backup/wifite-mod-pixiewps/wifite-ng /usr/bin/wifite-ng
chmod +x /usr/bin/wifite-ng

pedropt
2015-10-15, 18:41
the only way to solve it is to buy a new usb device with more space .
If it says that there is no more space , then probably is right .

pedropt
2015-11-21, 00:05
Kali uses an image with 3G that when is recorded in SD card goes to 5-6 Gig after first time system start, how much is the size of your SD card ?
If you have a big SD card (like 8G or more) and you just installed kali , then you probably have to increase your filesystem partition .

If that is the case then follow this next link :
http://elinux.org/RPi_Resize_Flash_Partitions

A tip , do the resize process with your SD card in a card reader connected to other linux computer , or your will have big problems to get the job done , if you have lucky .
Use Gparted in the linux machine where you will do the operation to SD card .


Note :
Old kali repositories are not avaliable anymore , so it will give a 404 error .
If you still want to stick in 1.1.0a version you have to change in your sources.list the links .
to do that follow these steps :

on terminal :

nano /etc/apt/sources.list

delete every repository you may have related to kali , and write this one :

deb http://old.kali.org/kali moto main non-free contrib

press keys "ctrl + o" to save , then press "enter" , and then press "ctrl + x" to close .
then you can do "apt-get update && apt-get upgrade -y"

Note : To release space from your USB pen write this on console :

apt-get clean
and you will release +- 1G of space temporarily to finish the installation , however , if you have a small capacity card , then you should buy a new card with more space (depending on your use in kali .

orangeworx
2016-01-24, 20:51
mkdir backup
cd backup
git clone https://github.com/derv82/wifite.git
git clone https://github.com/aanarchyy/wifite-mod-pixiewps.git
git clone https://github.com/t6x/reaver-wps-fork-t6x.git
git clone https://github.com/wiire/pixiewps.git
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
sudo apt-get install libpcap-dev aircrack-ng sqlite3 libsqlite3-dev libssl-dev -y
cd pixiewps/src/
make && make install
cd /root/backup/reaver-wps-fork-t6x/src/
./configure
make && make install
cp /root/backup/wifite/wifite.py /usr/bin/wifite
chmod +x /usr/bin/wifite
cp /root/backup/wifite-mod-pixiewps/wifite-ng /usr/bin/wifite-ng
chmod +x /usr/bin/wifite-ng

my issue is when i tried running the commands in red, it fails on the ./configure with:
"checking for pcap_open_live in -lpcap... no
error: pcap library not found!"

make && make install fail after
make: *** No targets specified and no makefile found. Stop.

any ideas? tried to get the pcap, wasn't sure where from.

localhost
2016-01-25, 17:02
my issue is when i tried running the commands in red, it fails on the ./configure with:
"checking for pcap_open_live in -lpcap... no
error: pcap library not found!"

make && make install fail after
make: *** No targets specified and no makefile found. Stop.

any ideas? tried to get the pcap, wasn't sure where from.

Lol? you don't need to follow this guide because pixiewps is already in wifite simply run wifite --pixiewps or at least run wifite -h for options and you will see the command in there you might have messed up your nethunter by trying to do what you did so.... don't be to surprised if wifite doesn't work correctly.

You only follow this guide if you're using like the old nethunter if you're on nethunter 3 its already install within wifite

orangeworx
2016-01-25, 20:50
Lol? you don't need to follow this guide because pixiewps is already in wifite simply run wifite --pixiewps or at least run wifite -h for options and you will see the command in there you might have messed up your nethunter by trying to do what you did so.... don't be to surprised if wifite doesn't work correctly.

You only follow this guide if you're using like the old nethunter if you're on nethunter 3 its already install within wifite

Lol indeed, I had run wifite already without doing much and realized after i'd done this that I broke something, wifite-ng runs but doesn't do much and wifite doesn't period, complains about MAC changes (old mac before assignment or something similar)

Clean install?

localhost
2016-01-28, 15:35
Clean install?

Unless you have nothing better to do all day other than trying to repair it a clean install would save you a lot of time.
Sorry that wasted your time by trying this things change and stuff gets added and sometimes old guides lead people to stuff like this this is pretty common on a lot of the videos I release people try to follow them and because stuff changes it tends to cause people hassles.

This is another reason I wanted to build my own distro :B

pedropt
2016-02-09, 16:31
Lol? you don't need to follow this guide because pixiewps is already in wifite simply run wifite --pixiewps or at least run wifite -h for options and you will see the command in there you might have messed up your nethunter by trying to do what you did so.... don't be to surprised if wifite doesn't work correctly.

You only follow this guide if you're using like the old nethunter if you're on nethunter 3 its already install within wifite

At the time this guide was written , pixiewps was just released and was not yet in kali repo , you had to to it manually .
Right now , pixiewps is installed automatically in apt-get update , the wifite and wifite-ng option in this guide is because some people like me , sometimes don't need pixiewps to crack down an AP , and normal wifite tool is more faster that wifite-ng .

To be honest , i prefer do to it manually using reaver or bully where i can implement some important switches in the attack , and if i use the wifite script some errors could appear .
For an example : if the Access point does not accept reaver association then wifite will fail on that AP , while if you do it manually you can always run in another terminal aireplay to do that job .

Wifite is simple for those who are starting in this area , or for those who want to check their own AP security flaws in the easiest way .
Anyway ....
Next time check the date of first post .

pedropt
2016-02-09, 16:34
to orangeworx : apt-get install make gcc libpcap-dev

thu292
2016-08-17, 09:34
ok , Thanks for posting