KALI LINUX , Aircrack-ng With Atheros Wifi Chipset Support On MI4I -- Vineet Alpha - Xiaomi Mi 4i

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.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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.
Then Select Install and it will take around 30 minutes to download the image and install Kali linux.
Step 5.
Then after installation click on start in linux deploy.
The output will be something like this.
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.
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
----------------------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-----------------------

yes!!! finaly!!! thx vineet

Share my post. If you feel thanked.

First thing - thanks for sharing your hard work!
Second: I am familiar with Kali, it is a one of four installed Linux distros on my laptop. I am also familiar with Linux Deploy app, but I have two questions:
-Will this work with Alfa AWUS036H, Realtek rtl8187L chipset (I have no TP-LINK.... )
-Will this work on Ressurection Remix LP, or we should use strict CM?
Yeah, yeah, I will try in any case, probably.

stiw47 said:
First thing - thanks for sharing your hard work!
Second: I am familiar with Kali, it is a one of four installed Linux distros on my laptop. I am also familiar with Linux Deploy app, but I have two questions:
-Will this work with Alfa AWUS036H, Realtek rtl8187L chipset (I have no TP-LINK.... )
-Will this work on Ressurection Remix LP, or we should use strict CM?
Yeah, yeah, I will try in any case, probably.
Click to expand...
Click to collapse
I am sorry bro Alfa AWUS036H and Realtek rtl8187L wont work on current kernel i have provided. Don't worry ill compile the kernel for you with Alfa AWUS036H, Realtek rtl8187L chipset soon and inform you.I think it may work with Ressurection Remix LP.

vineetdev said:
I am sorry bro Alfa AWUS036H and Realtek rtl8187L wont work on current kernel i have provided. Don't worry ill compile the kernel for you with Alfa AWUS036H, Realtek rtl8187L chipset soon and inform you.I think it may work with Ressurection Remix LP.
Click to expand...
Click to collapse
Thanks anyway, and thanks for your effort.
Sent from my MI 4i using Tapatalk

Please tell what is the use of kali linux on mi4i ?:what:

Can you please post the necessary changes required in the kernel?
I'm assuming it is enabling the ath9k drivers in kernel for the TP-LINK TL-WN722N, however, I might be mistaken and more changes might be required?

Well ,i make the flashable but not with patched kernel ,will upload today ,and everyone need to flash ur kernel

Rajat Naik said:
Please tell what is the use of kali linux on mi4i ?:what:
Click to expand...
Click to collapse
Have you ever heard BackTrack ?? It's new generation of that OS, Uses for Penetration Testing, Security parameters check, Ethical hacking stuff.
here

www.kali.org
Open that link bro

thewisenerd said:
Can you please post the necessary changes required in the kernel?
I'm assuming it is enabling the ath9k drivers in kernel for the TP-LINK TL-WN722N, however, I might be mistaken and more changes might be required?
Click to expand...
Click to collapse
see i have not mistaken . the changelog is verybig to provide and time consuming.everythings works fine till now.

Toruk.Makto said:
Have you ever heard BackTrack ?? It's new generation of that OS, Uses for Penetration Testing, Security parameters check, Ethical hacking stuff.
here
Click to expand...
Click to collapse
HA HA backtrack is the older version dude.LOL.....kali linux is the upgraded version of backtrack. Don't tell me ..........4 yrs of experience on pentesting.

thewisenerd said:
Can you please post the necessary changes required in the kernel?
I'm assuming it is enabling the ath9k drivers in kernel for the TP-LINK TL-WN722N, however, I might be mistaken and more changes might be required?
Click to expand...
Click to collapse
the changelog is verybig however ....very time consuming

vineetdev said:
see i have not mistaken . the changelog is verybig to provide and time consuming.everythings works fine till now.
Click to expand...
Click to collapse
okay, could you push your changes to github or a similar service?

vineetdev said:
HA HA backtrack is the older version dude.LOL.....kali linux is the upgraded version of backtrack. Don't tell me ..........4 yrs of experience on pentesting.
Click to expand...
Click to collapse
That's what I said, friend.

-_-
use multi quote please

thewisenerd said:
okay, could you push your changes to github or a similar service?
Click to expand...
Click to collapse
i will shortly push my sourcecode to github

vineetdev said:
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.
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.
Then Select Install and it will take around 30 minutes to download the image and install Kali linux.
Step 5.
Then after installation click on start in linux deploy.
The output will be something like this.
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.
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
----------------------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-----------------------
Click to expand...
Click to collapse
Bro I are really great
But I used kali Linux on android all things are good but VNC is showing black and grey plz help I am really crazy about this plz help me
I ma using mi4

i think its great though i dont know much about it. Can u tell what are the benifits bcz of these?

Related

[GUIDE] [15/12/11] How to run Ubuntu within Android on Desire S

I will no longer be updating this guide, to keep up to date with the project please see the App thread HERE. The Free app can be downloaded HERE and the Paid HERE
First and for most this guide has been created from a mixture of a few guides to get it all working on our phone, I do not take any credit for the methods all I have done is taken the time to work out how to get it working on our phone. This guide is for windows or can be done all on the phone. Anyway on with the guide
How To Install Ubuntu on the Desire S
Before we start you will need a ROM and kernel that supports loop devices.
This works best on lighter roms like cyanogenmod 7.1, however if you don't want to run a GUI it also works fine on sense ROMS. Please post any ROMS it doesn't work on.
It is also recommend that you have the Android SDK install so that you can access adb however all commands can be done on the phone via the terminal emulator
Also make sure that you have debugging mode enabled Go to Settings->Applications->Development and make sure USB Debugging is checked ON.
You will also need atleast 4GB of memory card space
Download and extract ubuntu.zip
Once you have a working ROM with loop support you must now download the special modified ubuntu image. I have hosted the file on my own server however if this is not quick enough feel free to mirror it or message me and I shall host else where as well.
There are now three versions to use as you wish, however the new 10.10 image has pretty much everything working, see change log at the bottom of the next post. the 11.10 image's UI does not work right and the 9.04 image is well rather old
[*]10.10 image V3 (Recommend)
[*]10.10 image V2 [*]10.10 image OLD
[*]11.10 image
[*]Old 9.04 image
Once you have downloaded this .zip file you will need to extract it to a folder on your sdcard name this folder "ubuntu".
Install and run Ubuntu!
If you do not have the android SDK install or wish to do all the commands via your phone please skip to step 7
1) Connect your Desire S to your computer via your USB cable and make sure USB mode is set to “Just Charge”.
2) Your Android device should be recognized as “ADB Device” under Device Manager. If not, install appropriate drivers.
For all HTC Android smartphones/tablets (such as G2 Phone, Nexus One), you can download Windows drivers here:
HTC Windows 64-bit driver download – Click Here to Download Driver
HTC Windows 32-bit driver download – Click Here to Download Driver
3) Now open a command window and navigate to the directory that you have installed the android SDK for example
Code:
cd c:\android-sdk
4) From here then navigate to the platform-tools directory
Code:
cd platform-tools
5) Now type “adb devices” to double-check your Android device is recognized. It should display something along the lines of
Code:
Lists of devices attached
HT09SR204261 device
If not then you have not installed the drivers for your phone or it is not in debugging mode.
6) Next type “adb shell” to enter the Android shell
7) Now type su to enter super user mode, then type cd /sdcard and then cd ubuntu to enter the directory on the SD card that you stored the ubuntu files.
Code:
su
cd /sdcard
cd ubuntu
8) Then type sh ubuntu.sh this will run the included script to ready your ubuntu image, do not worry about any error messages that are displayed!
Code:
sh ubuntu.sh
8.5) If running the 10.10 V2 image you should get this message 'please wait while booting the ubuntu img, please wait as this could take a while.' if you do get this then ubuntu is running and you just need to open vnc and connect to get into ubuntu. Please see the bug section on the third post for more information!
9) Now type bootubuntu to enter ubuntu (note in the future to start ubuntu simply type bootubuntu there is no need to run the script again)
Code:
bootubuntu
You should now see something along the lines of
Code:
[email protected]:/#
If you don't then its likely the ROM your using does not support loop devices and you will need to install one of the ROMs from the top of this guide to get it working.
And thats it you now have a working ubuntu command line running within android! however this isnt really much use so lets now get a more useful system running
How to Install TightVNCserver
This is by far the best program to install first off as it will let you access the GUI of Ubuntu as it run on your Desire S. (note this is already included in the 10.10 (V1 and V2) image there is no need to carry out this step)
0) Before you install any program first we need to update by typing
Code:
apt-get update
1) Now type “apt-get install tightvncserver” to install the VNC server.
it shall then as you if you wish to install the program etc etc say yes and it will install, simples.
How to Install LXDE (optional but recommended)
only need to carry out this step if you are using the 9.04 image
1) Type “apt-get install lxde” and ubuntu will do the rest
Set up TightVNCServer and fix keyboard issues
(note on the 10.10 image this step has been included already! so no need to carry it out)
Before we launch the TightVNCServer we much make changes the the xstartup file to change to it uses LXDE if we want this and also to fix a big issue with the android keyboard not being mapped correctly.
1) Start off by typing
Code:
cat > /root/.vnc/xstartup
To open the file we need to make changes in
2) Now type
Code:
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
export XKL_XMODMAP_DISABLE=1
icewm &
lxsession
The last two lines you will only want to type if you have installed LXDE if you want to use XFCE leave these lines off. The line above this (export XKL_XMODMAP_DISABLE=1) is what is needed to fix the keyboard mapping.
3) Now press ctrl+D twice and then press enter to the save the file, we are now ready to start up the VNCServer!
Start TightVNCServer
Now we are ready to start the server and connect our phone or windows computer to the Ubuntu running within our phone! (This step is not needed in the new 10.10 V2 image VNCserver now auto starts)
1) Start off by typing
Code:
export USER=root
vncserver -geometry 1024×800
you can change the resolution settings 1024×800 to the resolution of your liking. I find 800x480 does work well but limts your work space so its up to you.
2)TightVNCServer will then ask you for a password to connect to it, fill this in and your server will be then ready to accept any incoming connection from your phone or computer! (on the 10.10 image it will not ask for this, the password is set to ubuntu)
Connect to VNC on your phone
1) download the free app Android-VNC-viewer
2) open the app and set your IP address to 127.0.0.1 ( set this to localhost in 10.10 V2) and port number 5901 (5900 in 10.10 V2)and enter the password you set before (or ubuntu on 10.10 images) to then connect.
If all works right you will have a working GUI!!!
Connect to VNC on your computer
1)Start by downloading the desktop version of TightVNC Here
and install it
2) Open the TightVNC Viewer from the start menu it will ask for your phones IP address, to find this type ifconfig in your ubuntu terminal it will display your IP.
3)Type this into TightVNC and remember to add the port 5901 (5900 in 10.10 V2), it will then ask you for the password ('ubuntu' on 10.10 image) , enter this and you should then have a fully working GUI on your computer!
FAQ
How does Ubuntu look on our phone?
Ubuntu 9.04
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ubuntu 10.10
What is Ubuntu? and why would I want it on my phone
Ubuntu is a linux based operating system normally for the computer, however with this port we can run it on our phone, this allows you to pretty much install any software available for linux and run it on your phone.
What are the best settings for Android VNC Viewer?
I find full 24-bit colour works very well and there is no need to down step this, also Input Mode is best set to touchpad as the GUI is not very touch screen friendly when its this small! using touchpad makes the touch screen act just like the touch pad on a laptop and I find this very easy to use.
Updates
[15/12/11]
New 10.10 image
Included all updates as of today
Image resolution set by default to 800x480
[12/12/11]
New 10.10 image update
New built in script in Ubuntu to start vncserver and other services on boot
SD card is accessible from within Ubuntu
Image changed to 3.5GB to fit if you have a 4GB SD Card
The ubuntu boot scripts are now on easy to use script!
More working programs (including software centre etc)
Default desktop changed back to LXDE
More apps for 'developing'
Firefox, Thunderbird, openoffice.org suite, GIMP Image Editor, Emacs Text Editor (geared towards programming), C and C++ build-essential, Java JDK, Python, TeXlive and TeXmaker LaTeX editor, Transmission BitTorrent Client, eVince PDF Viewer, File Manager, Terminal, Image Viewer, Leafpad Text Editor, Synaptic Package Manager and Ubuntu Software Center with all repositories enabled (Ubuntu Software Center is pretty and well organized - but bloated and slow), SSH server, Gnash (GNU flash player/plugin for Firefox - as there is no official generla flash pluging for armel CPUs)
[23/11/11]
New 10.10 image
vncserver and bug fixes included in 10.10 image
New light weight UI in 10.10 image
4GB image size for plenty of app space
More programs should be working in the 10.10 image please test!!
New image all icons in GUI don't load Fixed in 10.10 image
New Firefox crashes on start up now fixed in 10.10 image
+More that I cant remember
[05/11/11]
Old 9.04 image readded for those that want working GUI until new image is fixed
[24/10/11]
Java install guide added
[23/10/11]
New 11.10 ubuntu 4GB image
Changed guide for new image
+MUCH more (will add later)
Bugs
At the moment to use the new 10.10 V2 image you have to carry out steps 7 to 8.5 each time in order to get into the GUI, which means the only way to use terminal for ubuntu is within the GUI, this isnt to bad as the build is now very stable
At the moment once you start ubuntu it seems to prevent the sdcard being mounted and as there is no way to shut down the ubuntu session you must reboot if you wish to mount the sdcard via usb
Java might still not be working right please test!!
Other Programs to Install
Ok so as I start working on testing more programs I will post here how well they work and what does and dosnt work. Most programs that run from terminal and don't require any hardware like wifi etc seem to work well!
JAVA SE FOR EMBEDDED
To install the Java version for arm open up the terminal and type the following lines of code
Code:
wget http://android.zpwebsites.com/java.tar.gz
This will download the java package from my server!
Once downloaded type
Code:
gunzip java.tar.gz
Code:
tar xvf java.tar
This will extract the java package into a folder called ejre1.6.0_27
then type
Code:
export JAVA_HOME=ejre1.6.0_27
Code:
export PATH=$JAVA_HOME/bin:$PATH
Java should then be completely installed, please test by typing
Code:
which java
Tips
Some android terminal emulators (e.g. better terminal) allow you to specify an initial command that is run as soon as you launch the application. Multiple initial commands can be defined by pressing return between each command when you define it, so for example the initial command:
Code:
su <return>
cd /sdcard/ubuntu <return>
sh ubuntu.sh <return>
This way to load the new 10.10 V2 image simply open the terminal emulator
Help Needed
I would love for people to test there fav linux programs, also anyone that knows alot about ubuntu/linux to help getting the image to run faster etc etc
:O OMG this is special xD
superkid said:
:O OMG this is special xD
Click to expand...
Click to collapse
im guessing your being sarcastic in which case, yes its the same as many guides across the internet however I could not find one for our phone, and the main purpose of this guide is for user to beable to find out what ROMs do work with it and hopefully create a better more user friendly ubuntu experience, after all when we can have around 300MB free ram why not use it for something like this?
I was not being sarcastic! its really special! UBUNTU ON A PHONE! i am downloading right now!
superkid said:
I was not being sarcastic! its really special! UBUNTU ON A PHONE! i am downloading right now!
Click to expand...
Click to collapse
AH alright then I hope that maybe more kernels will be produced that have loop support so this will work on more ROMS
main download link now up!!
you can download ubuntu.zip here
will def check this out
What is Ubuntu? Linux?
(Sorry for the noobie question)
shrome99 said:
What is Ubuntu? Linux?
(Sorry for the noobie question)
Click to expand...
Click to collapse
an operative system,it is free
anyway
finally,i m waiting this for a long time
Can i use the xda kitchen with this??
or anyway is it possible to cook rom on this ubuntu?
thanks
shrome99 said:
What is Ubuntu? Linux?
(Sorry for the noobie question)
Click to expand...
Click to collapse
It is a linux distro see http://www.ubuntu.com/
However please note for the time being the ubuntu we can use is 9.10 I will look to upgrade this soon mind you!
So, it's an OS for a Computer, like Windows?
shrome99 said:
So, it's an OS for a Computer, like Windows?
Click to expand...
Click to collapse
indeed its a compete OS that we can run within android on our phones! lots of programs are included and you can install more, but the likes of firefox works very well
Is it worth installing this instead of normal ROM ? I mean, what special can be done that can't be done with normal ROM ?
Is it possible to use this for everyday usage ? Is it possible to call with it ?
adridu59 said:
Is it worth installing this instead of normal ROM ? I mean, what special can be done that can't be done with normal ROM ?
Is it possible to use this for everyday usage ? Is it possible to call with it ?
Click to expand...
Click to collapse
At the moment you have to still install a normal ROM as this runs within android, the only requirements for the ROM is for it to have loop device support which the roms listed in the first post have that i know of.
People in the HTC HD2 forum where able to get ubuntu running without android being installed, it has also been done on the nexus s, my next steps will be to try and port this.
But for now this just runs within android calling etc is still done in android
Is my servers (the main link) download speed ok? or would your rather i uploaded it to multiupload?
I am a long-standing Linux user, so this is good! Do you have a screenshot of Ubuntu running? I am trying to work out how the GUI will scale on our phones.
Doesn't work using Zulugen 1.1.3 with CM7 kernel... :/
i m having issue with keyboard
do i need tightvnc every boot?

Kali Linux (Chroot) on Galaxy S4 i9505/i9500 [Tutorial]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How to Install:
1. Download Linux Deploy from PlayStore
2. Open it and go to settings
3. Selection Distribution: Kali and leave everything else as default, except Disk Image Size, which you should use 7128mb instead of Automatic.
3a. Normally it automatically finds your resolution, but you can change it on this page. (One of the last items.)
4. Then select Install
4a. [IMPORTANT] Be sure to be connected to a Wi-Fi network, otherwise 1.4GB will be downloaded from your Mobile Network.
4b. The downloading time is quite long, and you can't lose connection through that, otherwise the .img will be corrupted.
5. Once you see <<< end: installation on the app, download your favorite VNC client and set-up the following configurations:
IP/Host: localhost or 127.0.0.1
Port: 5900
Password: changeme
Click to expand...
Click to collapse
6. You will notice that there's no tools avaliable, open LXTerminal (From the dropup icon of Kali) then type:
sudo apt-get update
Click to expand...
Click to collapse
and
sudo apt-get upgrade
Click to expand...
Click to collapse
Those are minor commands, to really install the tools see next step
7. Type
sudo apt-get install kali-linux -yq
Click to expand...
Click to collapse
And wait for the full installation to complete, after it's sucesfully done it's good to go!
Q&A:
Which VNC Client you recommend?
I personally like Touchpad mouse settings and a full-screen view, the best free app that does the work for me is bVNC Free.
PostgreSQL gave me an error on the end of installation, is that supposed to happen?
YES, to fix PostegreSQL on Kali Linux ARM you have to whitelist on your network. You can do that by simply typing:
sudo usermod -a -G aid_inet postgres
Click to expand...
Click to collapse
IceWeasel (Internet Browser) is not opening! What's wrong?
For some reason when you first install it, the browser is misconfigured. To solve that type:
sudo apt-get install iceweasel
Click to expand...
Click to collapse
Happy Hacking!
Thanks so much for this!!!
Kali Linux is one of the best pentesting Linux distro.
But, I've get one error triying to install Kali
When I try to install, in the part that sais "making new disk image" the App fails. I try it changing the directory install... but not working.
Thanks in advance!!!
EDIT:
I think the errors was produced by:
First, because I hadn't 7 GB of free space
Second, the filesystem of my external sdcard (fat32) can't support files bigger tan 4 GB.
Triying again!!!
i got the same issue on my Galaxy S4 let me know if u ever find a fix
Works brilliantly. For people having problems on install. You need the following.
1. A phone not running android 4.3
2. Root
3. Busybox
Sent from my GT-I9505 using xda app-developers app
In the last attempt, I lost all my data in the external sdcard.
I don't know what happend exactly, probably I change some option without being aware, and that is the result.
Backup your data before install this!!!!
GruberEXN said:
...
3. Selection Distribution: Kali and leave everything else as default, except Disk Image Size, which you should use 7128mb instead of Automatic.
...
Click to expand...
Click to collapse
Can anything lower than 7128 MB work? I don't have that amount of space free and anything else I try fails to make the image.
::
whats the use of this ?
If you don't know what this is you don't need it
Sent from my GT-I9505 using XDA Premium HD app
so with the s 4 hardware what is possible can it go in to mon mode and does it support packet injection
simkhovich said:
so with the s 4 hardware what is possible can it go in to mon mode and does it support packet injection
Click to expand...
Click to collapse
That's all I want to know before I Flash it
__________________________________
Sent from my M919 w/ Dualboot
Obagleyfreer said:
If you don't know what this is you don't need it
Sent from my GT-I9505 using XDA Premium HD app
Click to expand...
Click to collapse
Wow so you know it already when you first heard of it?
You came also from that point.
Why not help?
Sent from my GT-I9500
gdonanthony said:
whats the use of this ?
Click to expand...
Click to collapse
It's a pentest distribution, made for security profissionals or hobbyists who wants to have all hackers tools at hand for penetration testing at servers.
simkhovich said:
so with the s 4 hardware what is possible can it go in to mon mode and does it support packet injection
Click to expand...
Click to collapse
No, since it's a Chroot installation. It's in a jail, you can't use any connection outside from it apart the internet connection (3g/wifi/2g, etc).
ktetreault14 said:
That's all I want to know before I Flash it
__________________________________
Sent from my M919 w/ Dualboot
Click to expand...
Click to collapse
Sorry, there's no use then.
marc_ecko28 said:
Wow so you know it already when you first heard of it?
You came also from that point.
Why not help?
Sent from my GT-I9500
Click to expand...
Click to collapse
Sorry for the delay.
GruberEXN said:
How to Install:
1. Download Linux Deploy from PlayStore
2. Open it and go to settings
3. Selection Distribution: Kali and leave everything else as default, except Disk Image Size, which you should use 7128mb instead of Automatic.
3a. Normally it automatically finds your resolution, but you can change it on this page. (One of the last items.)
4. Then select Install
4a. [IMPORTANT] Be sure to be connected to a Wi-Fi network, otherwise 1.4GB will be downloaded from your Mobile Network.
4b. The downloading time is quite long, and you can't lose connection through that, otherwise the .img will be corrupted.
5. Once you see <<< end: installation on the app, download your favorite VNC client and set-up the following configurations:
6. You will notice that there's no tools avaliable, open LXTerminal (From the dropup icon of Kali) then type:
and
Those are minor commands, to really install the tools see next step
7. Type
And wait for the full installation to complete, after it's sucesfully done it's good to go!
Q&A:
Which VNC Client you recommend?
I personally like Touchpad mouse settings and a full-screen view, the best free app that does the work for me is bVNC Free.
PostgreSQL gave me an error on the end of installation, is that supposed to happen?
YES, to fix PostegreSQL on Kali Linux ARM you have to whitelist on your network. You can do that by simply typing:
IceWeasel (Internet Browser) is not opening! What's wrong?
For some reason when you first install it, the browser is misconfigured. To solve that type:
Happy Hacking!
Click to expand...
Click to collapse
I go into settings but I cant find distribution. some help please
Sent from my SGH-M919 using xda app-developers app
xda23 said:
I go into settings but I cant find distribution. some help please
Sent from my SGH-M919 using xda app-developers app
Click to expand...
Click to collapse
This should be very simple, but anyway, I uploaded a short video showing how to select it.
It's pretty straightforward, really.
And please, don't quote the whole main post. (and edit this, please.)
There's a lot more to penetration testing then just wifi hacking.
hololight said:
There's a lot more to penetration testing then just wifi hacking.
Click to expand...
Click to collapse
You're actually right, but most of people don't get the whole idea of a penetrating testing operational system.
Can't blame them tho, server security don't interest most of them.
Hi. i have completed the installation everything is done and ready to start, but when I click the start button, it show done for the directories and other stuff, but when it comes down to SSH :22 and VNC :5900 it fails. I cannot connect it to the vnc or ssh.
Mount usb?
Sorry for my english.
I have installed kali successfully, but I need to mount a Tp-link WN722N or similar and I do not know how. Is this possible?
I would be very happy.
I'm having the same problem as tidu12 I've downloaded the distro successfully and I've downloaded the bvnc free, I enter in all the info given (127.0.0.1) port: 5900, and the password "changeme" it gives me this error "connection failed, connection to VNC server failed with reason:failed to connect to /127.0.0.1 (port 5900): connection failed: ECONNREFUSED (Connection refused)" I've also tried to enter in "localhost" for the host instead of the IP address and it gives me the same error.
Thanks in advance!!!

[Guide] Root on Linux Mint

Rooting a Xiaomi Mi 4i on Linux Mint 17.1 Rebecca
- This guide might also be relevant for users of Debian and Ubuntu
Disclaimer: I accept no responsibility for any damage you do to your phone, body, life or anything else in the past present or future.
This has been written as I had so much difficulty in getting my Mi 4i rooted. I kept trying to do it in Windows through Virtual Box but kept failing.
1. Enable Developer Options
- On your phone, go to Settings
- About phone
- Keep tapping on the Android version until the message at the bottom says that you are a developer
2. Enable USB debugging
- On your phone, go to Settings
- Additional settings
- Developer options
- USB debugging
3. Install the tools
Code:
sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fastboot
4. Try and see the devices
- Connect the phone to your computer
- Run the following command at the terminal
Code:
adb devices
- It will now say List of devices attached.
- If you see another line with an 8 character identifier such as bf1b6529 then you can skip step 5
5. Add phone to known devices
- Run the following command on the terminal
Code:
echo 0x2717 >> ~/.android/adb_usb.ini
6. Add your computer to trusted devices on your phone
- Enter the following command on the terminal:
Code:
adb devices
- Look on your phone, it should now be asking you if it can add the machine to the trusted devices, or something like that. I'm writing this from memory.
7. Check that adb devices is working
- Enter the following command on the terminal:
Code:
adb devices
- Check that the device ID is there (8 characters such as bf1b6529)
- Check that it says device after it
8. Kill adb
- Enter the following command on the terminal
Code:
adb kill-server
9. Now for the fun. You will need sudo access for this stage.
- Download boot.img to your computer.
- At the terminal, navigate to the directory where you downloaded boot.img, this will probably be ~/Downloads
- At the terminal:
Code:
adb reboot bootloader
- You will now see a screen like the following:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
- At the terminal:
Code:
sudo su
fastboot devices
- You will now see your device ID followed by fastboot
Code:
fastboot boot boot.img
- You will now see something like the following:
Code:
downloading 'boot.img'...
OKAY [ 1.022s]
booting...
OKAY [ 0.259s]
finished. total time: 1.281s
10. Restart
- At the terminal enter:
Code:
fastboot reboot
- You should now see a textual boot screen wher you can see it actually carrying out the rooting with boot.img
- Then it should boot as normal into Android
- Check your apps. You should now have SuperSU
Thanks for step no 5. After trying all kind of 51-android.rules guide from stackoverflow and your solution work. Now I can detect my device in Linux Mint.
5. Add phone to known devices
- Run the following command on the terminal
Code:
echo 0x2717 >> ~/.android/adb_usb.ini
Click to expand...
Click to collapse
thanks....
finally i can connect my mi4i to my linux desktop
Thank you for your guide. I assume this will work on Ubuntu 14.04 as well.
Question to step no.9: "Download boot.img to your current dir" => Which directory do you mean? The root of the phone or on my laptop? Sorry for being newbie. Many thanks.
rmsinaga said:
Which directory do you mean? The root of the phone or on my laptop?
Click to expand...
Click to collapse
You need to download boot.img to your laptop. I've updated Step 9 with the following:
- Download boot.img to your computer.
- At the command line, navigate to the directory where you downloaded boot.img, this will probably be ~/Downloads
Click to expand...
Click to collapse
Step one on the path to rooting my m4i was getting adb to work.
kblade29m said:
Thanks for step no 5. After trying all kind of 51-android.rules guide from stackoverflow and your solution work. Now I can detect my device in Linux Mint.
Click to expand...
Click to collapse
After much googling, much time, and trial and error, I had reached this point. Then I come here and here it is! All made simple.
The next hurdle is that adb devices shows the phone with the word "offline," and that is where...
aembleton said:
- Look on your phone, it should now be asking you if it can add the machine to the trusted devices, or something like that. I'm writing this from memory.
Click to expand...
Click to collapse
...I find I wasn't even seeing the message because the flip cover was closed. Doh.
This is my second Android phone, and I rooted and installed CM on the previous one, a Defy+. Still feel very much a novice, and approaching the rooting is quite scary. Among my worries...
Does this method change the recovery?
Does this method, with boot.img, install a new rom, or does it root the exisiting one?
Will everything else be reset/wiped? (well, backups anyway. Of course).
Will Xiaomi updates still work and be installable?
I am considering using method 1 from "Root/Unroot V6.5.x W/out Losing Stock Recovery [Simplified]" (new member: cannot make that a link) . Any comments?
It is so nice to see the Linux, and especially mint-specific, advice here. Thank you!
(My first post here: usual forum-novice disclaimers apply )
I have used this method to root my mi4i.
Quick answer:
1. No
2. It only roots the existing ROM
3. No
4. You need to full unroot 1st from SuperSU before updating, otherwise it will be bootloop
5. Never tried before
rmsinaga said:
I have used this method to root my mi4i.
Quick answer:
... ... ...
Click to expand...
Click to collapse
Great answer! :good:
Thank you very much for attention to every detail. The only thing putting me off going for this straight away is that I am travelling in just over a week, which doesn't give me any margin for making mistakes (if they can be made, I will make them!).
You mentioned having failed to make stuff work in a virtual machine. Did you try Wine? I failed to make the Mi PC manager software run in Wine.
Simple, painless and absolutely effective
aembleton said:
10. Restart[/B]
- At the terminal enter:
Code:
fastboot reboot
Click to expand...
Click to collapse
(response typed from memory)
Code:
# fastboot reboot
<Waiting for Device>
...amd it goes on waiting. Does anybody get any other response on the terminal screen after this?
Anyway, Be Patient! Probably better to make tea or something away from the screen. After several minutes of Fastboot screen on the phone, the process continues as premised...
aembleton said:
- You should now see a textual boot screen wher you can see it actually carrying out the rooting with boot.img
- Then it should boot as normal into Android
- Check your apps. You should now have SuperSU
Click to expand...
Click to collapse
...and all is well.
After the phone had rebooted, I just ctrl-c-ed the fastboot process and exited from the terminal.
Works wonders, thanks!
Could only find ****ty .exe rooting tools that seemed sketchy and don't have windows installed anymore, so this saved me hours.
My computer could find the phone through adb and got authorized, the phone couldn't find my computer through adb though which was strange but it still worked fine. Thanks alot!
Thad E Ginathom said:
4. Will Xiaomi updates still work and be installable?)
Click to expand...
Click to collapse
rmsinaga said:
4. You need to full unroot 1st from SuperSU before updating, otherwise it will be bootloop
Click to expand...
Click to collapse
Just tried this, it does not work.
Disabled root from SuperSU and updated to the newest weekly developer rom, and my device is now in a boot loop.
I'm currently trying to download the stable fastboot rom from the MIUI forums, but their servers are both incredibly slow and unstable. Doesn't go past 100kb/s and the download loses connection after a while and fails to continue the download. If someone could provide a alternative download link that would be great.
EDIT: Found a hidden link on the rom page for the fastboot rom from the miui page. Go to this page and Ctrl-F Mi4i
zenolijo said:
Found a hidden link on the rom page for the fastboot rom from the miui page. Go to this page and Ctrl-F Mi4i
Click to expand...
Click to collapse
Did this work for you?
I also got into a boot loop after installing the latest update. I installed the latest stable version. This worked, but the Play Store won't start.
aembleton said:
Did this work for you?
I also got into a boot loop after installing the latest update. I installed the latest stable version. This worked, but the Play Store won't start.
Click to expand...
Click to collapse
Well, the stable fastboot rom isn't the global version, so i only used it to get my phone running again and then flashed the stable global version. Everything works as expected now.
How to update ROM using fastboot in Linux?
Do you know how to update ROM using fastboot in Linux?
Sorry to bother you as I'm new in this Linux world.
Thank you.
Thank you man, you have guided us to the land of light, you are our moses, krishna, muhammad and so on and so forth. We can flash left and right without second thoughts. Please keep up your efforts. Thank you one more time.
My phone is, as per previous posts, rooted, using this method.
Can I now flash TWRP recovery from Linux?
Hey, this is a method only for Xiaomi Mi4i? I have an Estar Crystal-clearview and wondering if I can root it by this method? I run the terminal with the adb install and then for the list of devices attached, and I started thinking about!
P.s. Just searched ''root with mint'' and your post was first!
Thad E Ginathom said:
Can I now flash TWRP recovery from Linux?
Click to expand...
Click to collapse
Eventually I got around to doing this using Flashify. I followed the instructions here on the MIUI forum. It was simple and straightforward and I now have TWRP recovery.
However, when I tried to use it to do a backup, it said there was not enough space. But it was long past bedtime, and that is another story that I have yet to investigate. There is probably a simple answer, err... make more space! The absence of SD card slot and the limited internal memory is the big frustration about this phone.
But I want to upgrade MIUI --- and I don't want to do it without an easy backtrack to the previous ROM.
[Solved] Step 9 not working
Goto developer options
Check if 'fastboot mode' is enabled
Thanks
Hi aembleton,
Thanks a lot. it worked just fine.
does this replace recovery too ?

MONITOR MODE IS NOW WORKING ON NEXUS 5 BCMON4339 chipset

Ok check it out I just checked out www(DOT)nexmon(DOT)org and they have monitor mode working on the nexus 5 I have tried it and it works I was wondering if I could get this driver ported on 5.1.1 instead of having to use this on 6.0 I enjoy using my nethunter
Is nexmon a way to temporarily boot the phone to use it as a wifi interface in monitor mode, or is nexmon installed onto the phone and then you boot the phone normally and use nethunter?
m52 power! said:
Is nexmon a way to temporarily boot the phone to use it as a wifi interface in monitor mode, or is nexmon installed onto the phone and then you boot the phone normally and use nethunter?
Click to expand...
Click to collapse
nexmon is a project to enable monitor mode on the Nexus 5 smartphone. It consists of a kernel module, which is a modified bcmdhd driver, and a modified firmware that is executed on the ARM microcontroller inside the BCM4339 wifi chip. As module loading is disabled in stock kernels for the Nexus 5, we deliver a boot.img containing a kernel with enabled module loading and the modified driver module. The boot.img also disables the wpa_supplicant and p2p_supplicant services in the init.hammerhead.rc so that they are not starting automatically. This was necessary as those services interfered with our driver testing, for example, by automatically setting up an interface (ifconfig wlan0 up). The boot.img is also relatively large, as it contains a couple of tools in the /nexmon/bin directory. If size is not a problem, you can also flash the image to your phone, but then, you cannot use it for regular wifi operations anymore. In the future, we might fix this issue to make nexmon more user friendly.
If you want to report bugs or have feature requests, then feel free to contact us.
---------- Post added at 02:05 PM ---------- Previous post was at 02:02 PM ----------
BLACKHATN5 said:
Ok check it out I just checked out www(DOT)nexmon(DOT)org and they have monitor mode working on the nexus 5 I have tried it and it works I was wondering if I could get this driver ported on 5.1.1 instead of having to use this on 6.0 I enjoy using my nethunter
Click to expand...
Click to collapse
Did you try running the 6.0.1 kernel with a 5.1.1 system image? Even though there might be some stability issues, it could work – at least temporarily for playing with monitor mode. If you require a 5.1.1 kernel image, you can simply compile a 5.1.1 hammerhead kernel with enabled module support and bcmdhd enabled as a module. Then you can insmod whichever driver you want to use with your bcm4339 chip.<
Yes it is only temporary and its still in the works. I am not a said developer for the program I was just testing it
didn't work for me..
need help.
thephoenix0707 said:
didn't work for me..
need help.
Click to expand...
Click to collapse
Then explain us, what you tried to do and what failed to work. Btw. we are currently working on the project and I just saw that you have to load the nexmon.ko module instead of the bcmdhd.ko module. We intend to keep the unmodified bcmdhd driver while being able to activate monitor mode by loading the nexmon.ko.
Actually i am running nethunter 3.0 on Android M 6.0.1 on my nexus 5,then I came to know about the nexmon project so I tried enabling monitor mode by following the steps as per the website, and I guess the whole process went on perfectly.But still when I use the command airmon-ng I get an error "unable to detect for sdio".
thephoenix0707 said:
Actually i am running nethunter 3.0 on Android M 6.0.1 on my nexus 5,then I came to know about the nexmon project so I tried enabling monitor mode by following the steps as per the website, and I guess the whole process went on perfectly.But still when I use the command airmon-ng I get an error "unable to detect for sdio".
Click to expand...
Click to collapse
http://www.aircrack-ng.org/doku.php?id=airmon-ng said:
This script can be used to enable monitor mode on wireless interfaces. It may also be used to go back from monitor mode to managed mode. Entering the airmon-ng command without parameters will show the interfaces status.
Click to expand...
Click to collapse
airmon-ng is a script to setup a monitor interface, but our nexmon driver automatically starts with a monitor interface that delivers frames prepended by a radio-tap header. So you do not need to run airmon-ng to start the monitor interface. You can simply try to run tcpdump to dump the received frames. Currently, injection is not working, so you will not be able to use any tools that require this feature.
i think that's why i couldn't use it with airodump too,would wait for the features to be added...
thanks for the help..
hello, can now normal use phone with this kernel ?
adorex97 said:
hello, can now normal use phone with this kernel ?
Click to expand...
Click to collapse
You can normally use your phone with this kernel, but regular wifi operation does not work with the monitor mode firmware. We also offer a lot of other firmware pathches, including frame injection. Additionally, there will be a demo on this years WiSec conference https://www.securityweek2016.tu-darmstadt.de/wisec/program/.
normally flase boot.img after root and not working monitor mode ,no flashing n hunter
I am flase nexmon on my nexus 5 .but not enabled monitor mode and not installing nethunter..after flashing boot.img ,I am flash boot.img normally...but not working bcmon..and not installing any kernel after flase boot.img...please help me..how to enabled monitor mode....please say me steps by step..
vicky80800 said:
I am flase nexmon on my nexus 5 .but not enabled monitor mode and not installing nethunter..after flashing boot.img ,I am flash boot.img normally...but not working bcmon..and not installing any kernel after flase boot.img...please help me..how to enabled monitor mode....please say me steps by step..
Click to expand...
Click to collapse
There is a step by step instruction online:
Code:
Download the boot.img (this project is still in heavy development, the monitor mode should work on the boot.img in this commit though: 1171d135)
adb reboot bootloader
fastboot boot boot.img
without the flash parameter, this boot image will be reset to the previous one on the next reboot
fastboot reboot
adb shell
su -
insmod /nexmon/nexmon.ko
ifconfig wlan0 up
do whatever you want, e.g. run tcpdump: /nexmon/bin/tcpdump -i wlan0 -s0
If you simply want monitor mode, use the boot.img from commit 1171d135. We are also developing new patches. To run those you need to clone the git repo and run:
Code:
make boot
to compile everything and load the modified boot image onto your phone.
Then you can choose and load one of the patches from the firmware_patching directory on your phone by executing:
Code:
make reloadfirmware FWPATCH=monitor_mode_example
Then you can setup the interface
Code:
adb shell su -c 'ifconfig wlan0 up'
And run tcpdump
Code:
tcpdump -i wlan0 -s0
In the self build image, there are a lot of pentesting tools that are all built from source, such as aircrack-ng. Using aufs as overlay filesystem, you will find them overlayed over your system binaries, so that you can directly run them. We also patched the kernel to be able to create raw sockets without root priviledges, which allows you to access interfaces directly from Java code in Android apps, without the need of a binary that runs as root.
After installing boot.img not working WiFi network..no network found.. Can you say why ??
vicky80800 said:
After installing boot.img not working WiFi network..no network found.. Can you say why ??
Click to expand...
Click to collapse
Yes, because we disable wpa_supplicant and p2p_supplicant as they hinder development and always pull up the wifi interface when it is not intended to be pulled up.
To reenable the two services, comment the following lines in the Makefile and recompile your own boot.img:
Code:
&& sed -i '/service wpa_supplicant/,+11 s/^/#/' init.hammerhead.rc \
&& sed -i '/service p2p_supplicant/,+14 s/^/#/' init.hammerhead.rc \
Thanks ..for help
Hi @matthiasschulz,
thanks for your great work. I'm having two questions:
1. Is it possible to use your developed kernel driver with an other handset? I'm thinking of my LG G3 which also has the BCM4339 chipset.
2. It seems that one needs a specially built kernel to use your driver. Are you planing to do it like bcmon where no kernel compile is needed as they work with LD_PRELOAD to hook the C Library syscalls ?
3. Can your driver somehow be used from within a running android phone without the need to reboot into fastboot mode?
thank you very much!
hack_rid said:
1. Is it possible to use your developed kernel driver with an other handset? I'm thinking of my LG G3 which also has the BCM4339 chipset.
Click to expand...
Click to collapse
The kernel always depends on the device you use, however, you can take our modified bcmdhd driver for the BCM4339 and compile it for the LG G3.
hack_rid said:
2. It seems that one needs a specially built kernel to use your driver. Are you planing to do it like bcmon where no kernel compile is needed as they work with LD_PRELOAD to hook the C Library syscalls ?
Click to expand...
Click to collapse
We needed to rebuild the kernel, as the original Marshmallow kernel for the Nexus 5 stock firmware has module loading disabled. Hence, the WiFi driver is directly included in the kernel. As long as other devices do not have module loading activated, you cannot simply load our modified driver. Just replacing the WiFi firmware binary and using the LD_PRELOAD hack might work however.
hack_rid said:
3. Can your driver somehow be used from within a running android phone without the need to reboot into fastboot mode?
Click to expand...
Click to collapse
Not yet. Currently, we disable the wpa_supplicant and p2p_supplicant services during boot as they always try to activate the WiFi interface, which is annoying when developing new firmware patches. If someone would figure out how to stop and start the two services while the device is running, one could switch between a working original firmware version and our patches.
Hi Matthias,
thanks for your answer!
I'm digesting it!
I'm sure you closely followed the development of bcmon. If not, you can find some slides here where the devs explain how they achieved what is there:
dropbox...com/sh/le8zeczpddf3nx0/fdXn4LSxGI
link source:
bcmon.blogspot...de/2013/07/monitor-mode-reloaded_14.html
they reached a pretty portable solution. the only thing they need as a pre-requirement is root and the matching chipset
looking forward to your progress
Hey, @matthiasschulz can you tell me please why i can't get monitor mode (ex:in airodump-ng) in kali Terminal Emulator([email protected] 3.1). I have a Nexus 5 with Android 6.0.1 M0B30Y with Nethunter 3.1 on top of it and I booted nexmon (boot.img) from fastboot (command: fastboot boot boot.img).I didn't forget to insert the kernel module and bring the wlan0 interface up. The nice thing is that I can use only your tools from /nexmon/bin, like airodump-ng, but not in kali terminal, just in root android. It's something, for example,a simlink or a little bit more complicated than that?

TP-Link TL-WN722N wifi drivers for linux Nethunter .

Hi.
I want to install NetHunter on my OnePlus One phone.
Will probably flash a CM12 or 13 rom with NetHunter 2.0.
I have external adapter TP-Link-TL-WN722N, currently used for Linux kali rolling on my PC laptop. Since my OPO chip-set doesn't support monitor mode, I would like to use TP-Link-TL-WN722N.
My problem is finding the wifi drivers to install on a Android.
(Q) If you are currently using TP-Link TL-WN722N for NH or Linux Deploy, how did you download the drivers?
(Q) Is there an existing kernal to install having these drivers?
Or a set of instructions I could follow.
(Q) There is a linux package (firmware-atheros) in linux repository. Will this have the drivers?
Currently using ROM Lineage os 14.1.2, 64gb. Rooted phone with SuperSu 2.82 TWRP 3.1.1
I have an OTG host cable I tested with a mouse.
I'm fairly new at this so please explain.
Thanks.
TC.
Not working for me
@tomx2x I have the same question, the TL-WN722N doesn't want to work with the firmware-atheros package altough it should work with that. Did you manage to solve it?
Rooted, Cm13, android 6.0.1 twrp super su and flashed nethunter full 2017.10 with kernel 3.4.110. Installed firmware-atheros in terminal. Lsusb kind of shows something but not really recognising the adapter
This is a v2
Turned out that this is a v2 with r8188eu chipset.. no monitor mode
yesimxev said:
@tomx2x I have the same question, the TL-WN722N doesn't want to work with the firmware-atheros package altough it should work with that. Did you manage to solve it?
Rooted, Cm13, android 6.0.1 twrp super su and flashed nethunter full 2017.10 with kernel 3.4.110. Installed firmware-atheros in terminal. Lsusb kind of shows something but not really recognising the adapter
Click to expand...
Click to collapse
This is where I stand.
@yeseximv.
I am running TP-Link-TL-WN722N V1 but still cannot connect.
Newbie with Linux, so maybe you can assist me.
Trying Nethunteros rom.
Flashed Nethunteros successfully. Install Kali Chroot-full.
Using Bvnc app as VNC client to connect via ssh.
Firmware-atheros drivers are part of the Nethunteros kernal. Installed in /system/etc/firmware.
I am trying to connect to the internet w/o using a Network Manager app.
Here are the steps I performed.
1. Started Dbus service
2. Ifconfig Wlan0 up (Interface I am using).
3. Entered linux command: iw dev wlan1 connect “BayBreeze Hotel”
Terminal Message returned stated “connected”
TL-WN722N (wlan0 interface) starts blinking.
4. Launch Firefox.
I should see the hotel's Login page.
Received message “Problem loading page”
I know the essid “BayBreeze Hotel” is a active wireless wifi network. When not using Linux, I can launch & connect wifi (BayBreeze Hotel)on my OnePlus phone by going to settings.
There must be some commands/steps I am missing. Can you or anyone in this thread help?
If I cannot get this going, my next step will be to use Network-Manager apps.
In terms of your V2 TP-Link.
In GitHub forum there is NetHunter kernal (LKernel491.zip} I tried and was successful in Monitor mode.
Firmware is part of the kernal (no need to install firmware atheros manually).
You can go to the link I provided below, ask the Programmer (Bkr32) whether it supports V2.
My only issue using Lkernel491 patch is getting “Device Not Managed” error connecting to Network_Manager app. Tried Set*managed=true*in*/etc/NetworkManager/NetworkManager.conf.
But still unsuccessful.
Instructions to install are part of the link provided.
Here is the link:
https://github.com/offensive-security/kali-nethunter/issues/962#issuecomment-330428124
Thanks.
TC.
Got it
Newbie here too so can't help you with that, sorry. I finally got an AWUS036NEH and it all works flawlessly
tomx2x said:
@yeseximv.
I am running TP-Link-TL-WN722N V1 but still cannot connect.
Newbie with Linux, so maybe you can assist me.
Trying Nethunteros rom
...
Thanks.
TC.
Click to expand...
Click to collapse
yesimxev said:
Newbie here too so can't help you with that, sorry. I finally got an AWUS036NEH and it all works flawlessly
Click to expand...
Click to collapse
@yesimxev.
Can you provide the steps/commands you use to connect and launch the internet with AWUS036NEH wifi dongle. This may help me with my problem.
Thanks.
tomx.
I haven't used for connecting the internet, will test if works. I was interested in the monitor mode.
As before: Rooted, flashed twrp, super su, Cm13 with android 6.0.1 (stock firmware) and flashed nethunter (nightly) full 2017.10, then kernel 3.4.110. Installed firmware-atheros in terminal. Updated metapackages. Downloaded wifi metapackages, not sure if it's needed though. Then starting monitor mode works from the nethunter custom commands. Try making this config, then you can add the custom command to run after you plugged in the adapter.
https://forum.xda-developers.com/showthread.php?t=2121791
tomx2x said:
@yesimxev.
Can you provide the steps/commands you use to connect and launch the internet with AWUS036NEH wifi dongle. This may help me with my problem.
Thanks.
tomx.
Click to expand...
Click to collapse
Find drivers no problem
they are on tplink website with some manuals
but i think git is better..
have Nexus 7 .. for some reason it not detecting WN722N v3
but can see OTG (Running nethunter 2020)
so found this manual
download the driver , extract it in a folder , right click in folder and choose Open in termianl
and then enter these commands :
make clean
make all
cp realtek_blacklist.conf /lib/modprobe.d/
make install
reboot
to activate monitor mode :
ifconfig down
iwconfig mode monitor
ifconfig up
Hope it will work !!!!
shame on nethunter for not preloading drivers !!!!

Categories

Resources