[Xiaomi Mi 4i] vineetdev:
Hey What is on Developers Vineet Alpha Here.Today i am gona be showing you how to run Kali-Linux with aircrack-ng on MI4I.And i will also provide my custom built kernel for MI4I with Atheros Wifi Chipset Support.I use TP-Link WN722N and Works perfectly.It Took 9 Month To Complete this Project.Remember it only works on Cyanogen Mod. It won't work on MIUI.So Strictly Follow the Steps Or you end by Bricking up your phone.

[IMG="MI4I Atheros Kernel with Aircrack-ng"]https://lh5.googleusercontent.com/-3yR0fQ0BQwg/VpZOkuRr01I/AAAAAAAAAlY/DrikvSjYOLU/w433-h577-no/IMG_20151224_144216.jpg[/IMG]​

So, Let's get started

First Download The Things Below [ Essential's ]

Cyanogen-Mod 12.1 -> CM12.1-ferrari

G.aaps 5.1-> Gaaps5.1-Micro

T.W.R.P Recovery IMG-> Twrp 2.8.7.0.img

Kernel-> Vineet-Kernel-RebornV1.zip

Kernel2-> Default_Kernel.zip

Busy-box APK-> Busybox.apk

Juice SSH APK-> Juicessh.apk

KMOD Manager APK-> Kmod.apk

Linux Deploy-> Linuxdeploy.apk

And the Last thing a good Internet Connection So, that Linux deploy could download the kali linux image.

Step 1.

First Flash Twrp.img on your MI4I by putting it on Fastboot Mode.

Step 2.

Then Flash Cyanogen Mod 12.1 and Gaaps Using TWRP recovery.(Before Flashing Advance Wipe All the Data.)

Step 3.

Then Setup your Cyanogen Mod 12.1 Google account and Reboot Once.

Step 4.

Then Install All the apps Stated above in the essentials.

Now, Open Busy box and let it install automatically.

Then open Linux Deploy app.And go to the settings.

Leave the architecture as it is.

[IMG="kali linux deploy"]https://www.kali.org/wp-content/uploads/2013/09/linux-deploy-kali-list-00.png[/IMG]

Then Select Install and it will take around 30 minutes to download the image and install Kali linux.

[IMG="install kali linux mi4i"]https://www.kali.org/wp-content/uploads/2013/09/install-kali-linux-deploy.png[/IMG]

Step 5.

Then after installation click on start in linux deploy.

The output will be something like this.

[IMG="mi4i kali linux aircrack-ng"]http://www.kali.org/wp-content/uploads/2013/09/linux-deploy-mount.png[/IMG]

Then Open Juice SSH And add a new connection to it and Add

Username= android

Password= changeme

Address as = localhost:22

and then save it.

After that Click on connect in Juice SSH and enter password if asked as = changeme

Now, you will be into the localhost i mean kali linux terminal server.

Step 6.

Now Configure the kali linux follow my commands

type these commands

A) sudo passwd (To set your SU password in the kali linux so that you can run Aircrack-ng with admin access).

B) sudo apt-get update (necessary files and binaries to install)

C) sudo apt-get install aircrack-ng

D) sudo apt-get install wifite

C) sudo apt-get install rfkill (OPTIONAL)

Almost there my friends,

Step 7.

Now reboot the phone to TWRP recovery and Flash My Kernel (Vineet_Kernel_Reborn)

Remember after installing this Kernel Internal wifi won't work. That is the reason i told you to install and download everything before on phone.If you want to use the internal wifi again the flash the default kernel i have provided.On my kernel only external wifi adapter will work.And i'll fix this soon.

Now, after flashing the custom Kernel on CM12.1 Reboot your Phone.

Step 8.

Now open the app Kmod Manager and Load all the modules. Its very easy just switch on everything in the app.

Step 9.

Again open the Linux deploy and click on start

then open the Juice SSH app and connect to the Linux Shell(I mean to the terminal localhost of kali linux)

Step 10.

Connect you Wifi adapter using

Voila Rocking moment here-------(LAst STEp)\

Type these command to put Wifi Card (My is TP-Link WN722N Atheros AR9271) on Monitor Mode And Run Aircrack-ng on it.

A) airmon-ng (Remember it show question mark on driver just ignore it and it will give a statement just ignore all that.)

Output would be something like this.

[IMG="aircrack-ng mi4i"]https://lh4.googleusercontent.com/-V9RtAyE_gO8/VnPhJDpsK-I/AAAAAAAAAgA/b2y_dq9Vbq0/w1026-h577-no/Screenshot_2015-12-18-15-50-50.png[/IMG]​

B) airmon-ng start wlan1

or ( Depend on your wifi interface)

B) airmon-ng start wlan0

Remember after putting it on monitor mode the interface you will use on the commands will be something like this wlan1mon or wlan0mon

C) airodump-ng wlan1mon

or

C) airodump-ng wlan0mon

Output will be like this

[IMG="mi4i aircrack-ng kali linux"]https://lh5.googleusercontent.com/-b4NM46ijjzs/Vnr4ZtvsqYI/AAAAAAAAAjI/fy02kOZb6ro/w325-h577-no/Screenshot_2015-12-24-00-57-28.png[/IMG]

----------------------Enjoy Guys---------------------

-------You Can download additional Wifi tools and use it guys. Enjoy Folks.---

-------ENJOY MI-Hackers This is the first time aircrack-ng on MI Phone---------

----------------------Enjoy Guys-----------------------