• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][Official] Kali NetHunter for the OnePlus One LineageOS 17.1 Q

Search This thread

Ween Dwijler

Member
Feb 6, 2021
32
2
Thailand
Plz Give me a link for rtl8812au driver and installation guide...

Take it from there. Good luck!
 

maruf.mld24

Member
Jan 6, 2017
5
0
dhaka

Take it from there. Good luck!
sorry but that was not for my adapter tp link tl-722n...
 

crackedlemming

New member
Mar 19, 2021
2
0
I previously had Nethunter working on Marshallow and I've tried numerous methods to get this to work but feel as if though I am doing something wrong:

- OnePlus One (Rooted)
- TWRP 3.5.1_9-0 installed
- Wipe Everything
- Flash lineage-17.1-20210318-nightly-bacon-signed and open_gapps-arm-10.0-nano-20210314 from USB drive

Reboot
- At this point everything works fine. I am able to boot into Lineage OS.

Reboot into TWRP
- Connect device to PC and verify using "adb devices"
- Execute "adb shell setprop ro.build.system_root_image true"
- Flash Magisk-v22.0 and nethunter-20210214_192709-oneplus1-ten-kalifs-full from USB drive

Reboot
- Device just hangs at the OPO splash screen

During this process I receive no errors. I have also tried the following Nethunter builds:
nethunter-20210209_002441-oneplus1-pie-kalifs-full
nethunter-2021.1-oneplus1-ten-kalifs-full

Any thoughts? Any and all help is appreciated. Thanks.
 

yesimxev

Senior Member
May 8, 2017
180
69
I previously had Nethunter working on Marshallow and I've tried numerous methods to get this to work but feel as if though I am doing something wrong:

- OnePlus One (Rooted)
- TWRP 3.5.1_9-0 installed
- Wipe Everything
- Flash lineage-17.1-20210318-nightly-bacon-signed and open_gapps-arm-10.0-nano-20210314 from USB drive

Reboot
- At this point everything works fine. I am able to boot into Lineage OS.

Reboot into TWRP
- Connect device to PC and verify using "adb devices"
- Execute "adb shell setprop ro.build.system_root_image true"
- Flash Magisk-v22.0 and nethunter-20210214_192709-oneplus1-ten-kalifs-full from USB drive

Reboot
- Device just hangs at the OPO splash screen

During this process I receive no errors. I have also tried the following Nethunter builds:
nethunter-20210209_002441-oneplus1-pie-kalifs-full
nethunter-2021.1-oneplus1-ten-kalifs-full

Any thoughts? Any and all help is appreciated. Thanks.
Flash Magisk separately and let it boot with it. If it doesn't work, please try Magisk-v21.4
 

yesimxev

Senior Member
May 8, 2017
180
69

crackedlemming

New member
Mar 19, 2021
2
0
Flash Magisk separately and let it boot with it. If it doesn't work, please try Magisk-v21.4
I flashed Magisk separately and it was able to boot to Lineage. Running the adb command and flashing nethunter-20210214_192709-oneplus1-ten-kalifs-full resulted in getting hung up at the OPO startup screen. Doing a clean wipe and the associated steps with Magisk 21.4 provided the same results.

Is there any way to view, or debug, what is causing the failure? Thank you for your help.
 

yesimxev

Senior Member
May 8, 2017
180
69
I flashed Magisk separately and it was able to boot to Lineage. Running the adb command and flashing nethunter-20210214_192709-oneplus1-ten-kalifs-full resulted in getting hung up at the OPO startup screen. Doing a clean wipe and the associated steps with Magisk 21.4 provided the same results.

Is there any way to view, or debug, what is causing the failure? Thank you for your help.
Do you have the latest LineageOS from nightly builds? The version I've tried was good. Try this, it's around the same date https://androidfilehost.com/?fid=17248734326145711548
 
Apr 5, 2021
2
0
n00b here, I followed the steps closely and managed to install it on LOS 17.1 without too many issues. However, when I try to update metapackages, It reboots the phone, and when i try get the error "dpkg was interrupted" So I did: sudo skpg --configure -a and the phone reboots again.
Hopefully, I'm not asking stupid questions, if so and I miss something obvious, please forgive me. My Linux/Kali journey has only recently begon.
 

yesimxev

Senior Member
May 8, 2017
180
69
n00b here, I followed the steps closely and managed to install it on LOS 17.1 without too many issues. However, when I try to update metapackages, It reboots the phone, and when i try get the error "dpkg was interrupted" So I did: sudo skpg --configure -a and the phone reboots again.
Hopefully, I'm not asking stupid questions, if so and I miss something obvious, please forgive me. My Linux/Kali journey has only recently begon.
That's new, never experienced reboot from NH terminal. What metapackage did you try?
 
Apr 5, 2021
2
0
That's new, never experienced reboot from NH terminal. What metapackage did you try?
So I tried, Large, everything, top10 and small. All of them crashed. I tried installing all packages manually and found out 5 are causing the phone to reboot and then not able to install other packages. If I just leave out those 5 it does seem to work without to many glitches or issues.
 

yesimxev

Senior Member
May 8, 2017
180
69
So I tried, Large, everything, top10 and small. All of them crashed. I tried installing all packages manually and found out 5 are causing the phone to reboot and then not able to install other packages. If I just leave out those 5 it does seem to work without to many glitches or issues.
Can you just simply do apt-get update && apt-get install kali-linux-nethunter in chroot? Is it crashing with that too? Do you have enough space on /data?
 
  • Like
Reactions: negalol

darrenliew96

Member
May 28, 2014
47
5
Kuala Lumpur
So I tried, Large, everything, top10 and small. All of them crashed. I tried installing all packages manually and found out 5 are causing the phone to reboot and then not able to install other packages. If I just leave out those 5 it does seem to work without to many glitches or issues.
same here, one of the kali packages are mariadb. installing this causes immediately kernel panic and force reboot of the phone
 

negalol

Member
Jan 8, 2021
6
0

negalol

Member
Jan 8, 2021
6
0
Hello, I just installed the latest lineage os 17.1 on my oneplus one and I am using the latest TWRP 3.5.0_9. When trying to flash nethunter 2021.1 for android 10 via twrp an error 1 appears. Any suggestions.
P.S. I also have a problem while trying to root the phone by flashing supersu.
try to use in TWRP , Mount -> System V and then restart the TWRP and flash zip nethunter.
 

paolodetrane

New member
Jun 30, 2013
1
0
I have a problem, I did the installation many months ago, and everything used to work just fine, wifi adapeter included....but now when i connect the external card ( ALFA 036NHA) and do lsusb i see it with the right name for a couple of seconds...and then it disappear...do you guys have any idea? off course I can not see it in ifconfig...so i can not out it "up"
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    68747470733a2f2f6769746c61622e636f6d2f6b616c696c696e75782f6e657468756e7465722f6275696c642d736372697074732f6b616c692d6e657468756e7465722d70726f6a6563742f7261772f6d61737465722f696d616765732f6e657468756e7465722d6769742d6c6f676f2e706e67


    I present to you: Kali NetHunter for the OnePlus One LineageOS 17.1 Q

    This is the latest (experimental) version for the OnePlus One.

    Kali NetHunter is an Android ROM overlay that turns an ordinary phone into the ultimate Mobile Penetration Testing Platform.
    The overlay includes a custom kernel, a Kali Linux chroot, an accompanying Android application, which allows for easier interaction with various security tools and attacks, as well as a client to the Kali NetHunter App Store.
    Beyond the penetration testing tools arsenal within Kali Linux and the Kali NetHunter App Store, NetHunter also supports several additional classes, such as HID Keyboard Attacks, BadUSB attacks, Evil AP MANA attacks, and much more. For more information about the moving parts that make up NetHunter, check out our NetHunter Components page.
    NetHunter is an open-source project developed by Offensive Security and the community.

    ~ Prerequisites ~
    - Lineage 17.1 - https://download.lineageos.org/bacon
    - Gapps if needed - https://opengapps.org
    - TWRP - https://twrp.me/oneplus/oneplusone.html
    - Magisk – https://forum.xda-developers.com/apps/magisk

    ~~ Downloads ~~
    - NetHunter: https://www.androidfilehost.com/?fid=17248734326145736621

    ~~ How to Install ~~
    Assuming you have unlocked bootloader
    - Flash TWRP
    - Copy Lineage, Magisk and NetHunter image to USB drive
    - Boot into TWRP, insert USB drive.
    - Flash Lineage, and Gapps if needed, reboot and do initial setup
    - Reboot into TWRP
    - Some old devices with new ROMs doesn't have a TWRP with system_root prop set, therefore do
    Code:
    adb shell setprop ro.build.system_root_image true
    - Flash Magisk, NetHunter

    - Reboot
    - Run NetHunter app
    - Reboot

    ~~~ Notes & Updates ~~~
    - wlan1 unplug reboot is solved
    - Y-cable is still supported, just need to have it as a Custom Command or in a script (AndroidSU)
    Code:
    bootkali ycable start
    To stop:
    Code:
    bootkali ycable stop
    - Bluetooth Arsenal is supported, but you need to downgrade Bluez to 4.101 by compiling it in Kali chroot and installing "on top of" current Bluez so the bluetooth service will be able to run
    - Mana is being replaced, for the time being you can downgrade iptables with the following :
    Code:
    wget http://old.kali.org/kali/pool/main/i/iptables/iptables_1.6.2-1.1_armhf.deb
    wget http://old.kali.org/kali/pool/main/i/iptables/libip4tc0_1.6.2-1.1_armhf.deb
    wget http://old.kali.org/kali/pool/main/i/iptables/libip6tc0_1.6.2-1.1_armhf.deb
    wget http://old.kali.org/kali/pool/main/i/iptables/libiptc0_1.6.2-1.1_armhf.deb
    wget http://old.kali.org/kali/pool/main/i/iptables/libxtables12_1.6.2-1.1_armhf.deb
    
    dpkg -i *.deb
    
    apt-mark hold iptables
    apt-mark hold libip4tc0
    apt-mark hold libip6tc0
    apt-mark hold libiptc0
    apt-mark hold libxtables12

    - To downgrade to bluez-4.101:
    Code:
    apt-get update && apt-get install libdbus-1-dev libglib2.0-dev
    apt-mark hold bluez
    wget http://www.kernel.org/pub/linux/bluetooth/bluez-4.101.tar.gz
    tar xvf bluez-4.101.tar.gz && cd bluez-4.101
    ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --libexecdir=/lib --build=arm
    make && make install

    Please not that BLE is not supported in bluez-4.x. If you prefer to use that, keep bluez-5.x

    Credits: The Offensive Security Team and the NetHunter community

    Android Version: 10.0

    XDA: DevDB Information
    Kali Nethunter, Kernel & ROM for the OnePlus One

    Contributors
    @yesimxev

    Source Code: https://gitlab.com/kalilinux/nethunter/
    Kernel Source: https://github.com/yesimxev/android_kernel_oppo_msm8974

    Follow me on Twitter!
    2
    Well done! I'm personally not interested in NetHunter but it's nice to see some development still happening for our good old Oneplus One :)
    1
    Ok, I'll go do it now.

    Ok, did the setprop before flashing. Copied the zips from USB to local Download dir/map. Installed first nethunter-2020.4-generic-armhf-kalifs-full.zip and after that kernel-nethunter-20210206_204827-oneplus1-ten.zip (your latest).

    Both installs went smooth, no interruptions. After that, rebooted the system. No program icons (NH Terminal, NH, etc.) anywhere.
    1
    I'll try to patch but my weeks are extremely busy now
    That would be very, very nice. I'm really looking forward to have this working and start to use it in the field.

    FYI attached the lsusb readings in kali terminal and android terminal. The realtek shows up, but I guess the drivers are missing.
    1
    So I tried, Large, everything, top10 and small. All of them crashed. I tried installing all packages manually and found out 5 are causing the phone to reboot and then not able to install other packages. If I just leave out those 5 it does seem to work without to many glitches or issues.
    Can you just simply do apt-get update && apt-get install kali-linux-nethunter in chroot? Is it crashing with that too? Do you have enough space on /data?