• 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

yesimxev

Senior Member
May 8, 2017
184
71
Compare the hardware, if it is the same architecture, it should work. You'll have to try in that case.
I recommend the OOS 11 (Android 10), even if it's not lineage. Quite powerful.
Code:
          - android      : ten
            linux        : '4.14'
            kernel       : 1.1
            description  : Oxygen OS 11
            author       : Re4son
            source       : 'git clone https://github.com/Re4son/android_kernel_oneplus_sm8150_draco -b nethunter-10.0'
            features     : [BT_RFCOMM, HID-4, Injection, QCACLD, RTL8812AU]
looking at https://gitlab.com/kalilinux/nethun...i-nethunter-devices/-/blob/master/kernels.yml


But I guess you've got that info alrady
 

Ween Dwijler

Member
Feb 6, 2021
32
2
Thailand
I recommend the OOS 11 (Android 10), even if it's not lineage. Quite powerful.
Code:
          - android      : ten
            linux        : '4.14'
            kernel       : 1.1
            description  : Oxygen OS 11
            author       : Re4son
            source       : 'git clone https://github.com/Re4son/android_kernel_oneplus_sm8150_draco -b nethunter-10.0'
            features     : [BT_RFCOMM, HID-4, Injection, QCACLD, RTL8812AU]
looking at https://gitlab.com/kalilinux/nethun...i-nethunter-devices/-/blob/master/kernels.yml


But I guess you've got that info alrady
By the way, I try to get my head around this whole issue with external (USB) wifi on the O+1. NH is running with chroot, meaning effectively it is a kind of VM on Android?
 

Ween Dwijler

Member
Feb 6, 2021
32
2
Thailand
External wlan is ok, doesn't reboot anymore on unplug. NH is an overlay "on top of the ROM"

Hi, just installed Los 17.1 and Nethunter on top of it. All works good.

Now, how to get the USB working with the Realtek driver? Without it, the whole setup is pretty useless.

All I have now is a pretty nice looking 1+1 which I could use to impress friends in the bar, pretending I am a Mr. Robot. However, they have no clue where I'm talking about, so.......
 

yesimxev

Senior Member
May 8, 2017
184
71
Hi, just installed Los 17.1 and Nethunter on top of it. All works good.

Now, how to get the USB working with the Realtek driver? Without it, the whole setup is pretty useless.

All I have now is a pretty nice looking 1+1 which I could use to impress friends in the bar, pretending I am a Mr. Robot. However, they have no clue where I'm talking about, so.......
I'll try to patch but my weeks are extremely busy now
 
Feb 9, 2021
16
4
I recommend the OOS 11 (Android 10), even if it's not lineage. Quite powerful.
Code:
          - android      : ten
            linux        : '4.14'
            kernel       : 1.1
            description  : Oxygen OS 11
            author       : Re4son
            source       : 'git clone https://github.com/Re4son/android_kernel_oneplus_sm8150_draco -b nethunter-10.0'
            features     : [BT_RFCOMM, HID-4, Injection, QCACLD, RTL8812AU]
looking at https://gitlab.com/kalilinux/nethun...i-nethunter-devices/-/blob/master/kernels.yml


But I guess you've got that info alrady

I do... but thanks anyway. Tried it... doesn't work for me... but I'm guessing I must have a one in a million bad phone or something because it seems to work for everyone else. Anyway I'm gunna get off this thread because I don't have a OP1 anyway... OP6... so gunna stick to that thread.
 

Ween Dwijler

Member
Feb 6, 2021
32
2
Thailand
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.
 

Attachments

  • 29238.jpg
    29238.jpg
    91.1 KB · Views: 24
  • 29239.jpg
    29239.jpg
    62.9 KB · Views: 24
  • Like
Reactions: yesimxev

yesimxev

Senior Member
May 8, 2017
184
71
I do... but thanks anyway. Tried it... doesn't work for me... but I'm guessing I must have a one in a million bad phone or something because it seems to work for everyone else. Anyway I'm gunna get off this thread because I don't have a OP1 anyway... OP6... so gunna stick to that thread.

There could be several obstructions in these new OSes. Why don't you open an issue on kali-nethunter-devices on gitlab?
 

MrtnMrtn

New member
Mar 4, 2021
4
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.
 

Attachments

  • 20210304_002458.jpg
    20210304_002458.jpg
    2 MB · Views: 17
  • 20210304_002442.jpg
    20210304_002442.jpg
    1.6 MB · Views: 17

Ween Dwijler

Member
Feb 6, 2021
32
2
Thailand
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.
Where did you get your LOS 17.1 from? I recommend to use the links given by yesimxev. Use Magisk, instead of SuperSU. If you have good cables, a pc and the right drivers, you can play that phone as a fiddle.

I'm using TWRP 3.5.0_9, LOS 17.1 and the Nethunter version provided by yesimxev. It all works fine, except for the USB Wifi (but I believe yesimxev is working on that).

If you backup your data, you can completely erase the 1+1 and start from scratch. Do a bootloader, get TWRP on it, install LOS 17.1, install Magisk on it and as last one Nethunter. It should work.

Ask if you have problems.
 

MrtnMrtn

New member
Mar 4, 2021
4
0
Where did you get your LOS 17.1 from? I recommend to use the links given by yesimxev. Use Magisk, instead of SuperSU. If you have good cables, a pc and the right drivers, you can play that phone as a fiddle.

I'm using TWRP 3.5.0_9, LOS 17.1 and the Nethunter version provided by yesimxev. It all works fine, except for the USB Wifi (but I believe yesimxev is working on that).

If you backup your data, you can completely erase the 1+1 and start from scratch. Do a bootloader, get TWRP on it, install LOS 17.1, install Magisk on it and as last one Nethunter. It should work.

Ask if you have problems.
I downloaded both lineage 17.1 and nethunter from the official websites. I will try with the links from yesimxev.
Thanks!
 

UsPdSr

Senior Member
It all works fine, except for the USB Wifi (but I believe yesimxev is working on that).

Yesimxev explained several times, that at the moment the Realtek 8812au not supported is by this device in general due to the age of the kernel and the fact that so far nobody has written a working patch for it.

Every other chipset, especially the common ones like Atheros9271, Ralink 2800 and many more* are fully supported and working just fine.

There are dozens other (far more portable) Wifi adapter for a couple of bucks on eBay, Amazon etc. - fyi

If not, then look for another device, or simply be patient.

Many heaps

*
Mostly these:
ATH9K_HTC (AR9271, AR7010)
Ralink
  • RT73
  • RT2800USB
  • RT3070
Realtek
  • RTL8188EUS
  • RTL8188CU
  • RTL8188RU
  • RTL8192CU
  • RTL8192EU
  • RTL8723AU
 

Ween Dwijler

Member
Feb 6, 2021
32
2
Thailand
Yesimxev explained several times, that at the moment the Realtek 8812au not supported is by this device in general due to the age of the kernel and the fact that so far nobody has written a working patch for it.

Every other chipset, especially the common ones like Atheros9271, Ralink 2800 and many more* are fully supported and working just fine.

There are dozens other (far more portable) Wifi adapter for a couple of bucks on eBay, Amazon etc. - fyi

If not, then look for another device, or simply be patient.

Many heaps

*
I understand. I already looked for them around here (Thailand) but couldn't find any, yet. Most of the stuff sold here has no brand, and it is impossible to figure out what chipset the adapters have.

I know how to check what chipset is used for a particular brand and model, but searching for it the other way around doesn't seem to work. Frustrating....

Anyway, to narrow down my search, which chipsets have been reported to work with the 1+1? So not supposed to work, but really working in the field (somebody with real life experience with that particular usb wifi model).

If you, or anybody else here can enlighten me with that info? I would be much obliged.
 

Ween Dwijler

Member
Feb 6, 2021
32
2
Thailand
View attachment 5248521
kali nethunter website said TP link TL-wn722n v2/3 may be supported using RTL8812AU driver.
I have TP link TL-wn722n v3.
how can i install the driver?
I never came that far. But I guess you could try to install it the way you would in Kali. Use the nethunter terminal to do it. I have the rtl8812au drivers, but I think it didn't work. Try it, or buy one that is supported and save yourself the hassle.
Good luck!
 

maruf.mld24

Member
Jan 6, 2017
5
0
dhaka


I never came that far. But I guess you could try to install it the way you would in Kali. Use the nethunter terminal to do it. I have the rtl8812au drivers, but I think it didn't work. Try it, or buy one that is supported and save yourself the hassle.
Good luck!
Plz Give me a link for rtl8812au driver and installation guide...
 

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?