Current location - Quotes Website - Famous sayings - Install Kali Linux on your phone.
Install Kali Linux on your phone.
I have introduced Kali Linux to you before, which is a Linux distribution specially made for network security personnel, and integrates many penetration testing tools.

Just recently, I saw a software called Linux Deploy on the Internet, which can run Linux distributions on Android phones. The supported distributions are Kali Linux.

Out of curiosity and love for tossing, I fiddled with my old mobile phone and shared my tossing history here.

Preparatory work/about to start work

1 hardware

Friendly reminder: getting root permission will bring certain risks to the mobile phone. It is recommended to try using an idle old mobile phone.

The mobile phone I'm using here is Nubia Z 1 1 miniS, 4+64G, Snapdragon 625 processor, Android 9.0 system, and I got root permission.

2. Software

Install the above software one by one (the software installation package has been packaged, and you can get it by replying to the mobile phone penetration in the background of the official WeChat account).

It should be noted that after installing BusyBox Pro, you need to open the software to give you root privileges. Then you can see a loading progress bar at the top of the interface. When the progress bar is loaded to 100%, click the install button below to complete the installation.

Install Kali Linux

Open Linux Deploy and allow access to the root user. When you open it for the first time, it will show that the environment is being updated. A moment, please.

Enter the main interface of the software and click the menu in the upper left corner, which is the one with three horizontal lines.

Click the pop-up menu on the back and click Summary to open the summary interface. Click the plus sign in the upper right corner to create a new profile with any name. I wrote Kali here, and then click OK.

Click the newly created configuration to select it.

Return to the software main interface. At this point, the top-level linux has become Kali, indicating that the configuration file used at this time is only the newly created Kali.

Click the right button at the bottom to open the property configuration page.

Choose Kali for the distribution, and the architecture will be fine by default. Generally, it will automatically choose the architecture that matches your mobile phone cpu.

Change the source address to /kali/. This is the source code of China University of Science and Technology, and it will be faster to install.

Installation type: You can choose a directory or a file, and other options are not recommended.

Here I choose the directory, the installation path is filled with ${ENV_DIR}/kali, and the image size is automatically allocated.

If the image file is selected, fill in ${EXTERNAL_STORAGE}/kali.img in the installation path, and the image size can be automatically allocated or a fixed value can be entered. If you enter a fixed value, an image file with a fixed size will be created immediately, and automatic allocation is recommended.

Slide down to set the user name and password.

Keep sliding to the bottom. Check Enable ssh service for remote connections. Select Enable Graphical Environment for Remote Desktop Connection.

Return to the main interface of the software, click the menu in the upper right corner to pop up the menu bar, and click Install.

Installing. . . Take a sip of water and wait for a while.

It will take about 7-8 minutes. When?

Then you can start the system.

Click the Start button in the lower left corner. Start Extra/SSH will appear ... Done indicates that SSH service has started successfully. Start Graphics /vnc ... A "Finish" appears, which means that the VNC graphical interface service has started successfully.

At this point, the whole system has been successfully installed. As shown below.

If ssh fails, it means that the system failed to start, and the selected architecture may be wrong. You can choose another architecture to try to reinstall.

If you don't know the CPU architecture of the mobile phone, you can check it with CPU-Z. I also packed the CPU-Z installation package.

Mine is aarch64, which corresponds to arm64. X86 corresponds to i386, and x64 corresponds to amd64. Arm corresponds to armel or armhf, you can try it yourself.

Log in to the system using ssh.

Open Juice SSH and click Manage Connections. Click the plus sign in the lower right corner to add a connection, and enter the address and authentication information.

Enter the address 127.0.0. 1 and select "New" for authentication.

New certification.

Enter the account password previously set in Linux Deploy.

Click on the top right corner to save all the way.

At this point, you can already see the newly created connection in the interface and click it to connect.

Successfully connected Kali Linux.

Connect with a computer.

The connection was also successful.

Connecting vnc graphical interface environment

Open VNC viewer, click the plus button in the lower right corner, create a new connection, enter the address 127.0.0. 1, and then click Create.

When you are finished, click to connect.

A warning pops up, and click OK in the upper right corner. Turn off every warning below, and there will be no warning next time.

Requires a password, which is set in Linux Deploy.

Connection successful! Familiar Kali Linux wallpaper!

Display the mobile phone horizontally in full screen.

It looks much more comfortable. There is something wrong with the horizontal screen of my mobile phone, so I installed a mandatory horizontal screen software to successfully display the screen, and the software is also packaged on it, so I can get it if necessary.

Use the computer VNC browser to connect.

It's clear and not too stuck.

At this point, I have an Android phone that can do penetration testing, which is quite good.

This is the complete installation process. If you like tossing around and happen to have an old mobile phone, you might as well try it.