Kali linux in Redmi Note 3- chroot and LXDE Desktop

palbadi

Senior Member
Mar 2, 2012
231
92
48
Running Kali linux shell in Redmi Note 3 by 'chroot'-ing into it after mounting on data/local/mnt folder. Also using VNC to access the LXDE Desktop GUI.
It will run within a virtual machine on your phone alongwith the Android as well.



Required Files-
(Phone must be rooted)

1. Kali 1.0(moto) Image
https://sourceforge.net/projects/li...ux/kalilinux.BASIC.ext4.20131012.zip/download

2. Kali script
https://drive.google.com/open?id=0B_Aq1GXA8aP4UWZOcVB6X1lJUjQ

3. Busybox Installer, Termial Emulator, VNC Viewer- Download from Play Store


Steps for installing for 1st time:

1. Download kalilinux.BASIC.ext4.20131012.zip and Kali script and place them in the root of internal sdcard.
2. Install "Busybox" from Playstore. Then open it and Install Busybox 1.25.1.
3. Install "Termial Emulator" and open it.
4. In "Termial Emulator", type and press enter each time as follow-

i) su
ii) mount -o rw,remount /dev/block/bootdevice/by-name/system /system
ii) cp /sdcard/kali /system/bin/kali
iv) chmod 755 /system/bin/kali
v) kali install

That's all. First time and one time set-up is done, now no need to repeat any step later.


Running and Stoping the linux ( after 1st time set-up):

1. To enter into Kali's shell, Open "Termial Emulator" anytime and type "su" and then "kali start". To Exit type "exit".

2. To enter into Kali's LXDE Desktop, in "Termial Emulator" type "su" and then "kali vnc".
Now minimize or exit "Termial" and open VNC viewer.
Then enter following fields to enter desktop

address-127.0.0.1
port-5901
pass-kalilinux

To stop vnc server, Open "Termial Emulator" anytime and type "su" and then "kali vncstop".

3. To uninstall or exit the shell and all services, Open "Termial Emulator" anytime and type "su" and then "kali stop".



NB. To fix old kali keyring
Run in kali shell (after st set-up)

i) rm -rf /var/lib/apt/lists
ii) apt-get update
iii) apt-get install kali-archive-keyring


Here is the video guide
 
Last edited:

palbadi

Senior Member
Mar 2, 2012
231
92
48
I think this works on all smartphones (?)

Inviato dal mio SM-G935F utilizzando Tapatalk
Yes, for all. But remounting system command is different, may be not needed.

For remounting system as rw in redmi note 3

"mount -o rw,remount /dev/block/bootdevice/by-name/system /system"
 

palbadi

Senior Member
Mar 2, 2012
231
92
48
So...is it possible to run airmon-ng or aircrack-ng to hack Wifi password on RN3?
Yes, but with external wifi dongle, not with inbuilt wifi..
Will upload video if I got dongle

We already have Kali nethunter ROM 😀
Yes, and that is better. But it can be run in any android version and anytime by a simple command. It is very simple and handy..
 
Last edited:

silentacker

Member
Mar 1, 2016
14
0
0
Allahabad
We've to place Kali.zip or kali script in the root folder?

Running Kali linux shell in Redmi Note 3 by 'chroot'-ing into it after mounting on data/local/mnt folder. Also using VNC to access the LXDE Desktop GUI.
It will run within a virtual machine on your phone alongwith the Android as well.



Required Files-
(Phone must be rooted)

1. Kali 1.0(moto) Image
https://sourceforge.net/projects/li...ux/kalilinux.BASIC.ext4.20131012.zip/download

2. Kali script
https://drive.google.com/open?id=0B_Aq1GXA8aP4UWZOcVB6X1lJUjQ

3. Busybox Installer, Termial Emulator, VNC Viewer- Download from Play Store


Steps for installing for 1st time:

1. Download kalilinux.BASIC.ext4.20131012.zip and Kali script and place them in the root of internal sdcard.
2. Install "Busybox" from Playstore. Then open it and Install Busybox 1.25.1.
3. Install "Termial Emulator" and open it.
4. In "Termial Emulator", type and press enter each time as follow-

i) su
ii) mount -o rw,remount /dev/block/bootdevice/by-name/system /system
ii) cp /sdcard/kali /system/bin/kali
iv) chmod 755 /system/bin/kali
v) kali install

That's all. First time and one time set-up is done, now no need to repeat any step later.


Running and Stoping the linux ( after 1st time set-up):

1. To enter into Kali's shell, Open "Termial Emulator" anytime and type "su" and then "kali start". To Exit type "exit".

2. To enter into Kali's LXDE Desktop, in "Termial Emulator" type "su" and then "kali vnc".
Now minimize or exit "Termial" and open VNC viewer.
Then enter following fields to enter desktop

address-127.0.0.1
port-5901
pass-kalilinux

To stop vnc server, Open "Termial Emulator" anytime and type "su" and then "kali vncstop".

3. To uninstall or exit the shell and all services, Open "Termial Emulator" anytime and type "su" and then "kali stop".



NB. To fix old kali keyring
Run in kali shell (after st set-up)

i) rm -rf /var/lib/apt/lists
ii) apt-get update
iii) apt-get install kali-archive-keyring


Here is the video guide


I don't understand where to copy those two files plz explain to me....