Installing Kali NetHunter On the OnePlus 6

The preparation of the instruments :

adb: https://jingyan.baidu.com/article/22fe7cedf67e353002617f25.html
twrp: https://www.twrp.me/( You need to download the same version .img And .zip)
magisk: https://github.com/topjohnwu/Magisk
kali nethunter Mirror image : https://www.kali.org/get-kali/#kali-mobile
OnePlus6 Oxygen Wire brush bag ( Write this blog When kali Required Oxygen The version is 10)
payload_dumper: https://github.com/vm03/payload_dumper
( OnePlus 6- Wire brush brick rescue tool ( For a rainy day ): http://www.oneplusbbs.com/thread-4446250-1.html)
( It is recommended to prepare a ladder )

ps: Write this blog The equipment is no longer around , So there are few pictures , Wait until you remember later

Brush into a third party Recovery: twrp

twrp download

Enter twrp Official website , There is... In the upper right corner Devices, Go in and find your own equipment , It is recommended to choose the American version to download

To download .img And .zip Two documents

oneplus open usb debugging

Enter into oneplus About mobile page , Click on the version number continuously , Follow the prompts to enter developer mode

Find developer options , Open the inside "OEM Unlock "," Advanced restart " And "USB debugging ", At this time, pay attention to allow if there is a pop-up window on the device USB debugging

Brush in twrp

You can save all the required packages to your mobile device first , If you forget a package, you can use it later adb push Native path The target path To the device , Here is a list of the packages that need to be used in the future

twrp_install.zip
Oxygen10.zip (Oxygen Wire brush bag )
nethunter.zip (nethunter Mirror image )

The device is connected to the computer ,adb devices Check whether the device is connected , Use adb reboot fastboot Enter into fastboot Pattern

fastboot flash boot twrp.img Brush in boot Partition , Press the lock screen key to confirm startup , You will see twrp The startup screen of

Unlock , Click on the install , Brush in twrp_installer.zip complete twrp curing , But pay attention to brush it again every time you brush in a new bag twrp_installer.zip Prevent it from being officially recovery Cover .

Brush in Oxygen10

Get into twrp, Click clear , Complete Shuangqing ( Or click Advanced clear to check the first four , Siqing )

Click on the install , Brush in Oxygen10( If the current card slot fails to be brushed , You can try to switch to another card slot and try to brush in again )

About the card slot brushed ( namely oneplus6 Medium A/B Partition ): If currently in A Partition ( namely A The partition is an active partition ), In the brush in Oxygen when Oxygen Brush into Inactive zones namely B Partition , Remember to switch the current active partition to B Restart the partition and enter the system ( Entering the system is to enter the system in the current active partition ), Otherwise, you will be prompted that the current partition has no system installed , And install at the back nethunter when , Will nethunter Brush into the current Activity zones , So after brushing nethunter There is no need to switch partitions , Directly start and enter the system

Brush in again twrp installer

Click on the install , Brush in again twrp_installer.zip, prevent twrp Be overwritten

Get into Oxygen System , But remember not to connect to the Internet

Get into Oxygen10, but Remember not to network during initialization , Otherwise, you may get stuck in Google verification , There should be no big problem when networking after initialization .

root Get ready

extract boot.img

Brush in Oxygen System line brush package decompression , Find the inside payload.bin file

Use payload_dumper Yes payload.bin To extract (python payload_dumper payload.bin, The successful implementation will be in payload_dumper Found under folder output Folder , Inside is the extracted file ), Find the extracted boot.img

Use magisk patch boot.img

install magisk app

Extract the above boot.img Import into the device

Use magisk patch boot.img( It's the " install "), And will get magisk_patched-****.img Download to the computer ( The log will show the file path )

Brush in nethunter Mirror and root

I chose kali Provided by the official website nethunter Image package ( I don't want to recompile and recompile bug)

Brush in nethunter

Bear in mind , brush nethunter Don't remove when /data The data under the ( It is recommended not to clear any data ), brush nethunter Will test you data Check whether there is data , If you /data If there is no data under, the swipe will fail ( That is, let you enter the system first , After the initialization operation is completed, swipe nethunter)

Restart to Recovery Pattern , That is to enter into twrp in

Brush in nethunter.zip

After a successful brush in Do not enter the system for the time being , Go straight ahead root

Conduct root

stay twrp Select restart , Enter into fastboot Pattern ( Some are also called brush mode ?)

When the device enters fastboot After the model

Input... On the computer fastboot flash boot magisk_patched-****.img Brush in magisk patch Of boot Partition

Press the lock screen key to confirm

If there is no accident, you will see the startup screen ( You will see nethunter Handsome boot screen )

After entering the system, enter adb shell, stay oneplus In the command line mode of the su give root jurisdiction , Select allow on the pop-up window of the device

thus ,root complete

Ban oneplus The system update

After entering the system, you should be able to find nethunter Procedure , Go in and click kali Chroot Manager start-up Kali Linux chroot

After completion, in the following Kali Services Zhongba ssh Service open ( I checked auto start ), So that you can connect to kali The command line for ( Although it doesn't seem to be used in the back )

open NetHunter terminal , choice ANDROID Get into Android terminal , Input su -c pm disable com.oneplus.opbackup And implement , Ban oneplus Automatic update of

Have Fun

And then nethunter Some initialization operations are needed , open nethunter The program is just a little familiar with the operation ok 了

Some trivial personal understanding

Follow up if you want to hacking The operation should be mainly in NetHunter In the terminal

NetHunter KeX It should be a similar VNC client The program , Which can be connected to this device kali On , If you want to use it, you must first NetHunter Open in KeX Manager, First SETUP LOCAL SERVER Again START SERVER, Subsequently passed NetHunter KeX You can connect to kali

F-Droid It should be a similar app store The program , You can install and update other nethunter Tools (app)

questions
Required key not available

open kali Of terminal I will have some problems here , Enter the command to display Required key not available, stay kali Found a kind of Solution , But I'm not sure whether it will affect subsequent use . Specifically, find /etc/pam.d/su-l file , Will be one of the session optional pam_keyinit.so force revoke Comment out .

ps: If you can't get in kali Of terminal( Flash back ) Please check nethunter Medium ssh Is the service on

twrp By the official recovery Cover

Successful brush in nethunter And found after startup recovery Became official recovery, Tried to brush in again twrp_installer, But it cannot be switched on after brushing , I don't know why ( It may be a personal operation problem )

About A/B The problem of zoning

A/B The partition is not well understood ,A/B Partitioning seems to be a mechanism that will be used when the system is updated , if A Partition update failed, you can start B Partition , You can implement operations similar to rollback , It seems that you can also use this mechanism to install dual systems

Reference

http://www.oneplusbbs.com/thread-4197303-1-authorid-1125704.html

https://www.kali.org/docs/nethunter/installing-nethunter-on-the-oneplus-7/

https://www.bilibili.com/read/cv3655689/

https://forums.kali.org/showthread.php?48217-SSH-Bash-Required-key-not-available

OnePlus 6 Brush in kali nethunter More articles about

  1. OnePlus One( OnePlus 1) Brush machine Kali Nethunter Full tutorial

    Equipment information : Equipment name :OnePlus One( OnePlus 1) OS:ColorOS 1.2 Model of equipment :A0001 The goal is : stay OnePlus One( OnePlus 1) Admiral ColorOS 1.2 The brush machine is Kali N ...

  2. One plus mobile phone brushes into a third party Rec

    First, describe the overall process of brushing : The backup data ( Optional ): SMS . Contacts . Call record . picture . Cloud synchronization of application data . Unlock Brush into a third party Recovery( abbreviation Rec). Enter a third party Rec, Brush third party ROM. Brush the machine successfully Unlock ...

  3. KaliLinuxNetHunter Tutorial swipe into third party Recovery And start brushing

    KaliLinuxNetHunter Tutorial swipe into third party Recovery And start brushing 2. Brush into a third party Recovery( namely TWRP) TWRP(TeamWin Recovery Project) Is a XDA A great god ...

  4. Kali Linux NetHunter course Kali NetHunter Supported devices and ROMs

    Kali Linux NetHunter course Kali NetHunter Supported devices and ROMs NetHunter It's based on Kali Linux by Nexus Device built Android Penetration testing platform , These include ...

  5. one plus 1( OnePlus 1) brush kali nethunter course

    Just started a plus 1, It's just h2os And then this brush . Use the following resources : link :http://pan.baidu.com/s/1o7S0xzs password :2gvm Okay , Get down to business , If your system is not H2OS First of all ...

  6. Polar routing 1s, Firmware needs to be brushed in RipOS Systematic addition 40 block

    Polar routing 1s, Firmware needs to be brushed in RipOS Systematic addition 40 block , Integrate wifidog function ,wifi Ideal for ad routers . After testing , Wireless performance is stable , Wireless band 32 A mobile client . Specific configuration : 7620CPU , Main frequency 58 ...

  7. OnePlus 5 Android P Brush in twrp Of recovery

    The method introduced in this paper belongs to the general method of universality , It's more complicated than all kinds of toolkits on the Internet . But the toolbox doesn't have to be updated all the time ( The brush tool box of Yijia forum has stopped updating , It is estimated that the author does not need to add 5 Is that right , After all, it's been several years since the mobile phone was used ). And if you update your phone ...

  8. make “ hackers “ mobile phone --Kali Nethunter

    From March , Continue to update technical articles . I haven't updated the technical articles in a month , Part of the month is off , Another part of the time is learning assembly and operating system , Sedimentation and reverse technology . At the beginning of the year , To play  kali NetHunte ...

  9. The journey of miscellaneous brand machine ( Two )———— transplant TWRP The third party Recovery And brush it in

    Originally, I wanted to use the machine as android Cracking and developing test machines , If it's cracked, it must be the installation framework , After all, some of them involve shelling . however , I tried to install xposed When , The phone is stuck in the boot interface , That is to say magisk There was a mistake , If you want to ...

  10. Compile it yourself Android( millet 5) Kernel and brush in ( One click automatic compilation and packaging )

    Before compiling myself Android System , Brush in the phone . Compiling is simple , But the pit is relatively large , Mainly GFW Buried pit .. compile android The system is too big , Today, write down your compilation and brush in android Kernel approach . The main thing is to see that the third-party kernel can overclock ...

Random recommendation

  1. gdb The use of debugger

    Want to use gdb Debug the program , The first thing you need to gcc -g main.c -o test And then run gdb test Debug the program l ( Lowercase l, yes list The first letter of ), Used to list programs enter     Is to run the last command ...

  2. Use hex6x Hexadecimal conversion

    Contact DSP More than two years , Although burn Flash All operations are ok , But if you ask why you did it , I feel a little ashamed . So take some time , Check the information , Sort it out . 1. Have a look first BurnFlash What do you need . XXX.out ...

  3. UML The relationship between several kinds of Chinese : Inherit 、 Realization 、 rely on 、 relation 、 polymerization 、 The connection and difference of combination

    Inherit It refers to a class ( Called subclass . A subinterface ) Inherit another class ( Called the parent class . The parent interface ) The function of , And the ability to add its own new features , Inheritance is the most common relationship between classes or interfaces : stay Java This kind of relationship is based on the keyword extend ...

  4. hdu 1524 A Chess Game Game theory

    SG function !! The code is as follows : #include<stdio.h> #include<cstring> #define I(x) scanf("%d",& ...

  5. hdu4641-K-string( Postfix automaton )

    Problem Description Given a string S. K-string is the sub-string of S and it appear in the S at leas ...

  6. Modify... By command mysql Prompt

    stay cmd Window operation mysql When it comes to databases , The prompt in front is always mysql>, This prompt can be modified by command . In the login mysql To modify : mysql -uroot -p --prompt Prompt After logging in ...

  7. Double network card binding one IP--bond

    Double network card binding one IP step 1: newly build /etc/sysconfig/network-scripts/ifcfg-bond0 file DEVICE=bond0 ONBOOT=yes BOOTPROTO=stati ...

  8. Ajax The solution of Chinese disorder

    There are many solutions online Ajax Examples of Chinese garbled code , It took a long time last night , Finally determine a “ exactly ” Effective methods . First of all, I need to explain the situation I encountered : There is a registration page , After the registered user fills in the information and submits , Get information from the page and pass java servle ...

  9. I and Vuex My first encounter

    new Vue({ // state data () { return { count: 0 } }, // view template: ` <div>{{ count }}</d ...

  10. [ translate ] InstagramPhotoPicker

    InstagramPhotoPicker Present Image Picker like Instagram. Show picture selector , image Instagram This app is the same . Installation - Ann ...