Kali linux nethunter прошивка

Kali linux nethunter прошивка

In order to port NetHunter to a new device, it’s important to understand how NetHunter is separated. NetHunter is divided by the rootfs (also known as the chroot but will be referred to here as rootfs) and the kernel. For the most part, the rootfs is not important to your Android device as it only contains Kali Linux. The kernel is integral to getting things like Bluetooth, wireless USB, and HID keyboard (etc) working.

You also need a device with an unlocked bootloader, for flashing the kernel, and you must be able to get root on the device. Root is needed so we can write applications to system, such as busybox and bootkali, and execute commands that allow us to get Kali running.

If you are looking to port a device, it’s all about the kernel. Device must be unlockable/rootable.

Getting Started

Let’s assume that you’ve already followed the directions on the main docs page. You have all the dependencies met and you are ready to go. The first thing we want to do is build a test kernel.

Kernel Version

If your device is older, please check to make sure your kernel version is 3.4+ and above. With the switch to kali rolling we are starting to see errors inside chroot where the kernel is not able to support loading Kali.

Finding Kernel Sources

One of the reasons why Nexus was chosen is because all kernel sources are made available through Google’s own website. Finding sources can be easy or difficult depending on the manufacturer. A good resource is usually the XDA forums as someone else has probably already built a working kernel and they must provide the sources under GPL. Most kernel development pages on XDA must provide a link to their sources.

Читайте также:  Установить все шрифты linux

Making a Test Kernel

Assuming you don’t have a toolchain downloaded already, you can begin by cloning our kernel builder to the root of your kernel’s folder, and prepare the environment:

[email protected]:~$ git clone https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel [email protected]:~$ cd kali-nethunter-kernel 

Find your best matching local.config example file, modify if necessary, and copy to kernel builder folder:

[email protected]:~$ cp local.config.examples/local.config.example.sdm660 local.config [email protected]:~$ ./build.sh 

Select S. Setup Environment and download toolchains. When ready, build your test kernel with 2. Configure & compile kernel from scratch

Select your device’s defconfig, then save and exit to start the building process.

If the build was successful, add your device details like codename, boot_block, slot_device, etc with 8. Edit Anykernel config Create your first test kernel installer with 6. Create Anykernel zip

Now flash your kernel to see it in action!

Please note if you will continue and modify the kernel, you can use 3. Configure & recompile kernel from previous run to save time.

Updated on: 2023-Mar-06
Author: yesimxev

Источник

Kali linux nethunter прошивка

Install Kali NetHunter on any stock, unrooted Android device without voiding the warranty.

Prerequisite:

Android Device (Stock unmodified device, no root or custom recovery required)

Installation:

  • Install the NetHunter-Store app from store.nethunter.com
  • From the NetHunter Store, install Termux, NetHunter-KeX client, and Hacker’s keyboardNote:The button “install” may not change to “installed” in the store client after installation — just ignore it.Starting termux for the first time may seem stuck while displaying “installing” on some devices — just hit enter.
  • Open Termux and type:
[email protected]:~$ termux-setup-storage [email protected]:~$ pkg install wget [email protected]:~$ wget -O install-nethunter-termux https://offs.ec/2MceZWr [email protected]:~$ chmod +x install-nethunter-termux [email protected]:~$ ./install-nethunter-termux 

Usage:

Open Termux and type one of the following:

Читайте также:  Создание демона для linux
Command To
nethunter start Kali NetHunter command line interface
nethunter kex passwd configure the KeX password (only needed before 1st use)
nethunter kex & start Kali NetHunter Desktop Experience user sessions
nethunter kex stop stop Kali NetHunter Desktop Experience
nethunter run in NetHunter environment
nethunter -r start Kali NetHunter cli as root
nethunter -r kex passwd configure the KeX password for root
nethunter -r kex & start Kali NetHunter Desktop Experience as root
nethunter -r kex stop stop Kali NetHunter Desktop Experience root sessions
nethunter -r kex kill Kill all KeX sessions
nethunter -r run in NetHunter environment as root

Note: The command nethunter can be abbreviated to nh . Tip: If you run kex in the background ( & ) without having set a password, bring it back to the foreground first when prompted to enter the password, i.e. via fg — you can later send it to the background again via Ctrl + z and bg

To use KeX, start the KeX client, enter your password and click connect Tip: For a better viewing experience, enter a custom resolution under “Advanced Settings” in the KeX Client

NetHunter Editions:

Please refer to this table for a comparison of the different NetHunter editions.

Tips:

  1. Run sudo apt update && sudo apt full-upgrade -y first thing after installation to update Kali. If you have plenty of storage space available you might want to run sudo apt install -y kali-linux-default as well.
  2. All of the penetration testing tools should work but some might have restrictions, e.g. metasploit works but doesn’t have database support. If you discover any tools that don’t work, please post it in our forums.
  3. Some utilities like “top” won’t run on unrooted phones.
  4. Non-root users still have root access in the chroot. That’s a proot thing. Just be aware of that.
  5. Galaxy phone’s may prevent non-root users from using sudo. Just use “su -c” instead.
  6. Perform regular backups of your rootfs by stopping all nethunter sessions and typing the following in a termux session: tar -cJf kali-arm64.tar.xz kali-arm64 && mv kali-arm64.tar.xz storage/downloads That will put the backup in your Android download folder. Note: on older devices, change “arm64” to “armhf”
  7. Please join us in our forums to exchange tips and ideas and be part of a community that strives to make NetHunter even better.

Updated on: 2023-Mar-06
Author: re4son

Источник

Оцените статью
Adblock
detector